Examples of OdbcDriverDescriptor


Examples of org.jitterbit.integration.database.driver.OdbcDriverDescriptor

        loc.setDriver(createDriver());
        assertFalse(validator.validate().contains(MISSING_DRIVER));
    }

    private OdbcDriverDescriptor createDriver() {
        return new OdbcDriverDescriptor("PostgreSQL", "\"", "\"");
    }
View Full Code Here

Examples of org.jitterbit.integration.database.driver.OdbcDriverDescriptor

    @Test
    public void ensureManualConnectionStringForODBCWorks() {
        assertTrue(loc.getManualConnectionString() == null);
        loc.setManualConnectionString("");
        assertEquals("", loc.getManualConnectionString());
        DriverDescriptor driver = new OdbcDriverDescriptor("PostgreSQL", "\"", "\"");
        loc.setDriver(driver);
        String connection = "Server=127.0.0.1;Port=5432;Database=myDataBase;User Id=myUsername;Password=myPassword";
        loc.setManualConnectionString(connection);
        assertEquals(connection + ";", loc.getManualConnectionString());
    }
View Full Code Here

Examples of org.jitterbit.integration.database.driver.OdbcDriverDescriptor

    public void ensureCopyconstructorWorks() {
        loc.setServer("localhost");
        loc.setDatabase("test");
        loc.setLogin("user");
        loc.setPassword("password");
        loc.setDriver(new OdbcDriverDescriptor("PostgreSQL", "\"", "\""));
        DatabaseLocation copy = new DatabaseLocation(loc);
        for (String p : DatabaseLocation.getPropertyKeys()) {
            assertEquals(loc.getProperty(p), copy.getProperty(p));
        }
        assertEquals(loc.getDriver(), copy.getDriver());
View Full Code Here

Examples of org.jitterbit.integration.database.driver.OdbcDriverDescriptor

        assertEquals(loc.getDriver(), copy.getDriver());
    }

    @Test
    public void ensureGetConnectionStringForManualConnectionWorksForODBC() {
        loc.setDriver(new OdbcDriverDescriptor("PostgreSQL", BeginEndQuote.POSTGRES));
        loc.setManualMode(true);
        String completeManualConnectionString = "Driver=PostgreSQL;Server=MI6;Database=Test;UID=jbond;PWD=hemligt;";
        loc.setManualConnectionString(completeManualConnectionString);
        String connect = loc.getConnectionString();
        assertEquals(connect, completeManualConnectionString);
View Full Code Here

Examples of org.jitterbit.integration.database.driver.OdbcDriverDescriptor

public final class InformixUtilsJUnitTest {

    @Test
    public void ensureIsInformixDriverWorks() {
        BeginEndQuote quotes = BeginEndQuote.fromStrings("'", "'");
        DriverDescriptor driver = new OdbcDriverDescriptor("Informix", quotes);
        assertTrue(isInformix(driver));
        driver = new OdbcDriverDescriptor("PostgreSQL", quotes);
        assertFalse(isInformix(driver));
        driver = new JdbcDriverDescriptor("Informix", "informix", "a.b.c", quotes);
        assertTrue(isInformix(driver));
        driver = new JdbcDriverDescriptor("Postgres", "postgres", "a.b.c", quotes);
        assertFalse(isInformix(driver));
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.