01: package liquibase.database;
02:
03: import junit.framework.TestCase;
04:
05: public class DB2DatabaseTest extends TestCase {
06: public void testGetDefaultDriver() {
07: Database database = new DB2Database();
08:
09: assertEquals(
10: "com.ibm.db2.jcc.DB2Driver",
11: database
12: .getDefaultDriver("jdbc:db2://localhost:50000/liquibas"));
13:
14: assertNull(database
15: .getDefaultDriver("jdbc:oracle://localhost;databaseName=liquibase"));
16: }
17:
18: }
|