Remove deprecated Yin/YangStatementSourceImpl
[yangtools.git] / yang / yang-data-codec-xml / src / test / java / org / opendaylight / yangtools / yang / data / codec / xml / Bug8083Test.java
index 7d91be07580710b75a26c60a142b07e1140c0194..83c2107c612aa0cfb5a1d87033cd9bfcff88aef0 100644 (file)
@@ -30,7 +30,7 @@ public class Bug8083Test {
     @Ignore("XMLEmptyCodec needs to be fixed first.")
     @Test
     public void testInstanceIdentifierPathWithEmptyListKey() throws Exception {
-        final SchemaContext schemaContext = YangParserTestUtils.parseYangSource("/bug8083/yang/baz.yang");
+        final SchemaContext schemaContext = YangParserTestUtils.parseYangResource("/bug8083/yang/baz.yang");
         final Module bazModule = schemaContext.getModules().iterator().next();
         final ContainerSchemaNode topCont = (ContainerSchemaNode) bazModule.getDataChildByName(
                 QName.create(bazModule.getQNameModule(), "top-cont"));
@@ -52,7 +52,7 @@ public class Bug8083Test {
 
     @Test
     public void testInstanceIdentifierPathWithIdentityrefListKey() throws Exception {
-        final SchemaContext schemaContext = YangParserTestUtils.parseYangSource("/bug8083/yang/zab.yang");
+        final SchemaContext schemaContext = YangParserTestUtils.parseYangResource("/bug8083/yang/zab.yang");
         final Module zabModule = schemaContext.getModules().iterator().next();
         final ContainerSchemaNode topCont = (ContainerSchemaNode) zabModule.getDataChildByName(
                 QName.create(zabModule.getQNameModule(), "top-cont"));
@@ -74,7 +74,7 @@ public class Bug8083Test {
 
     @Test
     public void testInstanceIdentifierPathWithInstanceIdentifierListKey() throws Exception {
-        final SchemaContext schemaContext = YangParserTestUtils.parseYangSource("/bug8083/yang/foobar.yang");
+        final SchemaContext schemaContext = YangParserTestUtils.parseYangResource("/bug8083/yang/foobar.yang");
         final Module foobarModule = schemaContext.getModules().iterator().next();
         final ContainerSchemaNode topCont = (ContainerSchemaNode) foobarModule.getDataChildByName(
                 QName.create(foobarModule.getQNameModule(), "top-cont"));