package liquibase.dbtest.unsupported;
/**
* TODO: find a good way to implement that doesn't require wrapping the connection object.
* Use to test using Derby, but changing the reported type so Liquibase doesn't recognize it.
*/
@SuppressWarnings({"all"})
public abstract class UnsupportedDBIntegrationTest { // extends AbstractIntegrationTest {
// public UnsupportedDBIntegrationTest() throws Exception {
// super("unsupported", "org.apache.derby.jdbc.EmbeddedDriver", "jdbc:derby:liquibase;create=true");
// }
//
// protected void setUp() throws Exception {
// super.setUp();
//// connection = new ConnectionWrapper(connection);
// System.out.println(connection.getClass().getName());
// }
//
//
// protected void tearDown() throws Exception {
// try {
// driver.connect("jdbc:derby:liquibase;shutdown=true", new Properties());
// } catch (SQLException e) {
// ;//clean shutdown throws exception.
// }
// super.tearDown();
// }
//
// protected Migrator createLiquibase(String changeLogFile) throws Exception {
// Migrator migrator = super.createLiquibase(changeLogFile);
// migrator.setCurrentDateTimeFunction("CURRENT_TIMESTAMP");
// return migrator;
// }
//
// public void testIsActuallyUnsupportedDatabase() throws Exception {
// Migrator migrator = createLiquibase(null);
//
// assertTrue("Not using unsupported database", migrator.getDatabase() instanceof UnsupportedDatabase);
//
// }
//
// public void testGetDefaultDriver() throws Exception {
// assertNull(createLiquibase(null).getDatabase().getDefaultDriver(url));
// }
//
// protected boolean shouldRollBack() {
// return false;
// }
}