01: package liquibase.parser;
02:
03: import liquibase.parser.LiquibaseSchemaResolver;
04: import static org.junit.Assert.*;
05: import org.junit.Test;
06:
07: /**
08: * Tests for {@link liquibase.parser.LiquibaseSchemaResolver}
09: */
10: public class LiquibaseSchemaResolverTest {
11:
12: @Test
13: public void resolveEntity() throws Exception {
14: LiquibaseSchemaResolver liquibaseSchemaResolver = new LiquibaseSchemaResolver();
15:
16: assertNotNull(liquibaseSchemaResolver
17: .resolveEntity(null,
18: "http://www.liquibase.org/xml/ns/migrator/dbchangelog-1.0.xsd"));
19: assertNull(liquibaseSchemaResolver.resolveEntity(null,
20: "http://www.liquibase.org/xml/ns/migrator/invalid.xsd"));
21: }
22: }
|