1 |
|
package liquibase.database.core; |
2 |
|
|
3 |
|
import junit.framework.TestCase; |
4 |
|
import liquibase.database.Database; |
5 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 2 |
Complexity Density: 0.29 |
|
6 |
|
public class DerbyDatabaseTest extends TestCase { |
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
7 |
1
|
public void testGetDefaultDriver() {... |
8 |
1
|
Database database = new DerbyDatabase(); |
9 |
|
|
10 |
1
|
assertEquals("org.apache.derby.jdbc.EmbeddedDriver", database.getDefaultDriver("jdbc:derby:liquibase;create=true")); |
11 |
|
|
12 |
1
|
assertNull(database.getDefaultDriver("jdbc:oracle://localhost;databaseName=liquibase")); |
13 |
|
} |
14 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
15 |
1
|
public void testGetDateLiteral() {... |
16 |
1
|
assertEquals("TIMESTAMP('2008-01-25 13:57:41')", new DerbyDatabase().getDateLiteral("2008-01-25 13:57:41")); |
17 |
1
|
assertEquals("TIMESTAMP('2008-01-25 13:57:41.300000')", new DerbyDatabase().getDateLiteral("2008-01-25 13:57:41.3")); |
18 |
1
|
assertEquals("TIMESTAMP('2008-01-25 13:57:41.340000')", new DerbyDatabase().getDateLiteral("2008-01-25 13:57:41.34")); |
19 |
1
|
assertEquals("TIMESTAMP('2008-01-25 13:57:41.347000')", new DerbyDatabase().getDateLiteral("2008-01-25 13:57:41.347")); |
20 |
|
} |
21 |
|
|
22 |
|
} |