import static org.junit.Assert.assertNotNull;
import java.io.IOException;
-import java.net.URI;
import java.net.URISyntaxException;
import java.util.Iterator;
import org.junit.Before;
import org.junit.Test;
+import org.opendaylight.yangtools.yang.common.XMLNamespace;
import org.opendaylight.yangtools.yang.model.api.Module;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
import org.opendaylight.yangtools.yang.model.api.Submodule;
import org.xml.sax.SAXException;
public class YinFileIncludeStmtTest {
-
private SchemaContext context;
@Before
Submodule childModule = submodulesIterator.next() ;
assertNotNull(childModule);
assertEquals("child", childModule.getName());
- assertEquals(new URI("urn:opendaylight/parent"), childModule.getNamespace());
+ assertEquals(XMLNamespace.of("urn:opendaylight/parent"), childModule.getNamespace());
}
}