Add XMLNamespace
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / stmt / Bug7038Test.java
index abf30252f00b706d1a9b7be71d464193736ca186..34294e62e733d23a301a92a3eb5511e5463b9181 100644 (file)
@@ -14,10 +14,10 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 
-import java.net.URI;
 import org.junit.Test;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.common.QNameModule;
+import org.opendaylight.yangtools.yang.common.XMLNamespace;
 import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
 import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
@@ -30,7 +30,7 @@ public class Bug7038Test {
     @Test
     public void unknownNodeTest() throws Exception {
         final ModuleStatement bar = StmtTestUtils.parseYangSources("/bugs/bug7038")
-            .getModuleStatement(QNameModule.create(URI.create("bar"))).getDeclared();
+            .getModuleStatement(QNameModule.create(XMLNamespace.of("bar"))).getDeclared();
         final UnrecognizedStatement decimal64 = bar.findFirstDeclaredSubstatement(UnrecognizedStatement.class)
             .orElseThrow();
         assertEquals("decimal64", decimal64.argument());