use of liquibase.Contexts in project liquibase by liquibase.
the class ContextChangeSetFilterTest method visitorContextFilterUpperUpper.
@Test
public void visitorContextFilterUpperUpper() {
ContextChangeSetFilter filter = new ContextChangeSetFilter(new Contexts("TEST1"));
ChangeSet changeSet = new ChangeSet(null, null, false, false, null, null, null, null);
changeSet.addSqlVisitor(new TestSqlVisitor("TEST1"));
assertTrue(filter.accepts(changeSet).isAccepted());
assertEquals(1, changeSet.getSqlVisitors().size());
}
use of liquibase.Contexts in project liquibase by liquibase.
the class LiquibaseChangeLogSyncToTagMojo method performLiquibaseTask.
@Override
protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException {
super.performLiquibaseTask(liquibase);
liquibase.changeLogSync(toTag, new Contexts(contexts), new LabelExpression(labels));
}
Aggregations