use of liquibase.RuntimeEnvironment in project liquibase by liquibase.
the class ChangeLogIteratorTest method runChangeSet_doubleFilterIterator.
@Test
public void runChangeSet_doubleFilterIterator() throws Exception {
TestChangeSetVisitor testChangeLogVisitor = new TestChangeSetVisitor();
ChangeLogIterator iterator = new ChangeLogIterator(changeLog, new ContextChangeSetFilter(new Contexts("test1")), new DbmsChangeSetFilter(new MySQLDatabase()));
iterator.run(testChangeLogVisitor, new RuntimeEnvironment(null, null, null));
assertEquals(3, testChangeLogVisitor.visitedChangeSets.size());
assertEquals("1", testChangeLogVisitor.visitedChangeSets.get(0).getId());
assertEquals("4", testChangeLogVisitor.visitedChangeSets.get(1).getId());
assertEquals("5", testChangeLogVisitor.visitedChangeSets.get(2).getId());
}
Aggregations