Examples of StandardDataSource


Examples of org.enhydra.jdbc.standard.StandardDataSource

    }

    @Test
    public void testOracleCustomInstance()
    {
        StandardDataSource source = lookupDataSource("custom-instance-oracle");
        assertEquals("jdbc:oracle:thin:@localhost:1521:mule", source.getUrl());
    }
View Full Code Here

Examples of org.enhydra.jdbc.standard.StandardDataSource

    }

    @Test
    public void testMysqlDefaults()
    {
        StandardDataSource source = lookupDataSource("default-mysql");
        assertEquals("jdbc:mysql://localhost/mule", source.getUrl());
        assertEquals("com.mysql.jdbc.Driver", source.getDriverName());
        assertEquals("mysql", source.getUser());
        assertEquals("secret", source.getPassword());
    }
View Full Code Here

Examples of org.enhydra.jdbc.standard.StandardDataSource

    }

    @Test
    public void testMysqlCustomUrl()
    {
        StandardDataSource source = lookupDataSource("custom-url-mysql");
        assertEquals("jdbc:mysql://mule-db-host:3306/mule", source.getUrl());
    }
View Full Code Here

Examples of org.enhydra.jdbc.standard.StandardDataSource

    }

    @Test
    public void testMysqlCustomHost()
    {
        StandardDataSource source = lookupDataSource("custom-host-mysql");
        assertEquals("jdbc:mysql://some-other-host/mule", source.getUrl());
    }
View Full Code Here

Examples of org.enhydra.jdbc.standard.StandardDataSource

    }

    @Test
    public void testMysqlCustomPort()
    {
        StandardDataSource source = lookupDataSource("custom-port-mysql");
        assertEquals("jdbc:mysql://localhost:4242/mule", source.getUrl());
    }
View Full Code Here

Examples of org.enhydra.jdbc.standard.StandardDataSource

    }

    @Test
    public void testPostgresqlDefaults()
    {
        StandardDataSource source = lookupDataSource("default-postgresql");
        assertEquals("jdbc:postgresql://localhost/mule", source.getUrl());
        assertEquals("org.postgresql.Driver", source.getDriverName());
        assertEquals("postgres", source.getUser());
        assertEquals("secret", source.getPassword());
    }
View Full Code Here

Examples of org.enhydra.jdbc.standard.StandardDataSource

    }

    @Test
    public void testPostgresqlCustomUrl()
    {
        StandardDataSource source = lookupDataSource("custom-url-postgresql");
        assertEquals("jdbc:postgresql://mule-db-host:5432/mule", source.getUrl());
    }
View Full Code Here

Examples of org.enhydra.jdbc.standard.StandardDataSource

    }

    @Test
    public void testPostgresqlCustomHost()
    {
        StandardDataSource source = lookupDataSource("custom-host-postgresql");
        assertEquals("jdbc:postgresql://some-other-host/mule", source.getUrl());
    }
View Full Code Here

Examples of org.enhydra.jdbc.standard.StandardDataSource

    }

    @Test
    public void testPostgresqlCustomPort()
    {
        StandardDataSource source = lookupDataSource("custom-port-postgresql");
        assertEquals("jdbc:postgresql://localhost:5433/mule", source.getUrl());
    }
View Full Code Here

Examples of org.enhydra.jdbc.standard.StandardDataSource

    }

    @Test
    public void testDerbyDefaults()
    {
        StandardDataSource source = lookupDataSource("default-derby");
        assertEquals("jdbc:derby:memory:mule", source.getUrl());
        assertEquals("org.apache.derby.jdbc.EmbeddedDriver", source.getDriverName());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.