01: package liquibase.database;
02:
03: import junit.framework.TestCase;
04:
05: public class UnsupportedDatabaseTest extends TestCase {
06: public void testGetDefaultDriver() {
07: Database database = new UnsupportedDatabase();
08:
09: assertNull(database
10: .getDefaultDriver("jdbc:oracle://localhost;databaseName=liquibase"));
11: assertNull(database
12: .getDefaultDriver("jdbc:db2://localhost;databaseName=liquibase"));
13: assertNull(database
14: .getDefaultDriver("jdbc:hsqldb://localhost;databaseName=liquibase"));
15: assertNull(database
16: .getDefaultDriver("jdbc:derby://localhost;databaseName=liquibase"));
17: assertNull(database
18: .getDefaultDriver("jdbc:sqlserver://localhost;databaseName=liquibase"));
19: assertNull(database
20: .getDefaultDriver("jdbc:postgresql://localhost;databaseName=liquibase"));
21: }
22:
23: }
|