use of liquibase.diff.DiffResult in project liquibase by liquibase.
the class AbstractIntegrationTest method generateChangeLog_noChanges.
@Test
public void generateChangeLog_noChanges() throws Exception {
if (database == null) {
return;
}
runCompleteChangeLog();
DiffResult diffResult = DiffGeneratorFactory.getInstance().compare(database, database, new CompareControl());
DiffToChangeLog changeLogWriter = new DiffToChangeLog(diffResult, new DiffOutputControl(false, false, false, null));
List<ChangeSet> changeSets = changeLogWriter.generateChangeSets();
assertEquals(0, changeSets.size());
}
Aggregations