X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-rfc7950%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fstmt%2FBug4623Test.java;h=6082e43fff9015b492f2b415fb153dae2b993fdf;hb=c4517068c0183a892703b26baf098c97bfb2a854;hp=0e2ba93ae26b828998abae784585a28c3c7c747a;hpb=6f4042c68d54ac6043104623fcb880fced5b237b;p=yangtools.git diff --git a/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/Bug4623Test.java b/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/Bug4623Test.java index 0e2ba93ae2..6082e43fff 100644 --- a/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/Bug4623Test.java +++ b/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/Bug4623Test.java @@ -13,11 +13,11 @@ import static org.junit.Assert.assertNotNull; import com.google.common.collect.Range; import java.io.File; -import java.net.URI; import java.util.Collection; import java.util.List; import org.junit.Test; import org.opendaylight.yangtools.yang.common.QName; +import org.opendaylight.yangtools.yang.common.XMLNamespace; import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode; import org.opendaylight.yangtools.yang.model.api.Module; import org.opendaylight.yangtools.yang.model.api.SchemaContext; @@ -40,7 +40,7 @@ public class Bug4623Test { final SchemaContext schemaContext = TestUtils.parseYangSources(extdef, stringWithExt); final LeafSchemaNode leaf = (LeafSchemaNode) typesModule(schemaContext).getDataChildByName( - QName.create(URI.create("urn:custom.types.demo"), "leaf-length-pattern-unknown")); + QName.create(XMLNamespace.of("urn:custom.types.demo"), "leaf-length-pattern-unknown")); // then final TypeDefinition type = leaf.getType(); @@ -76,7 +76,7 @@ public class Bug4623Test { final SchemaContext schemaContext = TestUtils.parseYangSources(extdef, stringWithExt); final LeafSchemaNode leaf = (LeafSchemaNode) typesModule(schemaContext).getDataChildByName( - QName.create(URI.create("urn:custom.types.demo"), "leaf-length-unknown-pattern")); + QName.create(XMLNamespace.of("urn:custom.types.demo"), "leaf-length-unknown-pattern")); // then assertNotNull(leaf); @@ -112,7 +112,7 @@ public class Bug4623Test { final SchemaContext schemaContext = TestUtils.parseYangSources(extdef, stringWithExt); final LeafSchemaNode leaf = (LeafSchemaNode) typesModule(schemaContext).getDataChildByName( - QName.create(URI.create("urn:custom.types.demo"), "leaf-unknown-length-pattern")); + QName.create(XMLNamespace.of("urn:custom.types.demo"), "leaf-unknown-length-pattern")); // then assertNotNull(leaf);