use of liquibase.Liquibase in project liquibase by liquibase.
the class AbstractIntegrationTest method invalidIncludeDoesntBreakLiquibase.
@Test
public void invalidIncludeDoesntBreakLiquibase() throws Exception {
if (database == null) {
return;
}
Liquibase liquibase = createLiquibase(invalidReferenceChangeLog);
try {
liquibase.update(new Contexts());
fail("Did not fail with invalid include");
} catch (ChangeLogParseException ignored) {
//expected
}
LockService lockService = LockServiceFactory.getInstance().getLockService(database);
assertFalse(lockService.hasChangeLogLock());
}
use of liquibase.Liquibase in project liquibase by liquibase.
the class AbstractIntegrationTest method testTag.
@Test
public void testTag() throws Exception {
if (database == null) {
return;
}
Liquibase liquibase = createLiquibase(completeChangeLog);
clearDatabase(liquibase);
liquibase = createLiquibase(completeChangeLog);
liquibase.update(this.contexts);
liquibase.tag("Test Tag");
}
use of liquibase.Liquibase in project liquibase by liquibase.
the class AbstractIntegrationTest method testUnrunChangeSetsEmptyDatabase.
@Test
public void testUnrunChangeSetsEmptyDatabase() throws Exception {
if (database == null) {
return;
}
Liquibase liquibase = createLiquibase(completeChangeLog);
clearDatabase(liquibase);
liquibase = createLiquibase(completeChangeLog);
List<ChangeSet> list = liquibase.listUnrunChangeSets(new Contexts(this.contexts), new LabelExpression());
assertTrue(list.size() > 0);
}
Aggregations