View Javadoc

1   package liquibase.parser.core.xml;
2   
3   import static org.junit.Assert.*;
4   import org.junit.Test;
5   
6   public class LiquibaseEntityResolverTest {
7   
8       @Test
9       public void resolveSchemas() throws Exception {
10          LiquibaseEntityResolver liquibaseSchemaResolver = new LiquibaseEntityResolver();
11  
12          assertNotNull(liquibaseSchemaResolver.resolveEntity(null, null, null, "http://www.liquibase.org/xml/ns/migrator/dbchangelog-1.0.xsd"));
13          assertNull(liquibaseSchemaResolver.resolveEntity(null,null,null, "http://www.liquibase.org/xml/ns/migrator/invalid.xsd"));
14      }
15  }