コード例 #1
0
  public void testGetDefaultDriver() {
    Database database = new OracleDatabase();

    assertEquals(
        "oracle.jdbc.OracleDriver", database.getDefaultDriver("jdbc:oracle:thin:@localhost/XE"));

    assertNull(database.getDefaultDriver("jdbc:db2://localhost;databaseName=liquibase"));
  }
コード例 #2
0
  public void testGetDefaultDriver() {
    Database database = new MySQLDatabase();

    assertEquals(
        "com.mysql.jdbc.Driver", database.getDefaultDriver("jdbc:mysql://localhost/liquibase"));

    assertNull(database.getDefaultDriver("jdbc:db2://localhost;databaseName=liquibase"));
  }
コード例 #3
0
  public void testGetDefaultDriver() {
    Database database = new DerbyDatabase();

    assertEquals(
        "org.apache.derby.jdbc.EmbeddedDriver",
        database.getDefaultDriver("jdbc:derby:liquibase;create=true"));

    assertNull(database.getDefaultDriver("jdbc:oracle://localhost;databaseName=liquibase"));
  }