Package org.enhydra.jdbc.standard

Examples of org.enhydra.jdbc.standard.StandardDataSource


        assertEquals("secret", source.getPassword());
    }

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


        assertEquals("jdbc:mysql://mule-db-host:3306/mule", source.getUrl());
    }

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

        assertEquals("jdbc:mysql://some-other-host/mule", source.getUrl());
    }

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

        assertEquals("jdbc:mysql://localhost:4242/mule", source.getUrl());
    }

    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

        assertEquals("secret", source.getPassword());
    }

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

        assertEquals("jdbc:postgresql://mule-db-host:5432/mule", source.getUrl());
    }

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

        assertEquals("jdbc:postgresql://some-other-host/mule", source.getUrl());
    }

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

        assertEquals("jdbc:postgresql://localhost:5433/mule", source.getUrl());
    }

    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

        assertEquals("org.apache.derby.jdbc.EmbeddedDriver", source.getDriverName());
    }

    public void testDerbyCustomUrl()
    {
        StandardDataSource source = lookupDataSource("custom-url-derby");
        assertEquals("jdbc:derby:muleEmbedded", source.getUrl());
    }
View Full Code Here

        assertEquals("jdbc:derby:muleEmbedded", source.getUrl());
    }

    public void testDerbyCreateDatabase()
    {
        StandardDataSource source = lookupDataSource("create-database-derby");
        assertEquals("jdbc:derby:memory:mule;create=true", source.getUrl());
    }
View Full Code Here

TOP

Related Classes of org.enhydra.jdbc.standard.StandardDataSource

Copyright © 2018 www.massapicom. 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.