use of liquibase.database.core.MockDatabase in project liquibase by liquibase.
the class SqlGeneratorChainTest method validate_oneGenerators_noErrors.
@Test
public void validate_oneGenerators_noErrors() {
SortedSet<SqlGenerator> generators = new TreeSet<SqlGenerator>(new SqlGeneratorComparator());
generators.add(new MockSqlGenerator(1, "A1", "A2"));
SqlGeneratorChain chain = new SqlGeneratorChain(generators);
ValidationErrors validationErrors = chain.validate(new MockSqlStatement(), new MockDatabase());
assertFalse(validationErrors.hasErrors());
}
Aggregations