Remove deprecated Yin/YangStatementSourceImpl
[yangtools.git] / yang / yang-data-codec-gson / src / test / java / org / opendaylight / yangtools / yang / data / codec / gson / Bug5446Test.java
index 4c937f2fcb695277a0674313715857e2cba5e521..55ce9c74a2bf305231167e69b26d3aef2da610fe 100644 (file)
@@ -54,8 +54,7 @@ public class Bug5446Test {
         rootQName = QName.create(fooModuleQName, "root");
         ipAddressQName = QName.create(fooModuleQName, "ip-address");
 
-        schemaContext = YangParserTestUtils.parseYangSources(
-                new File(Bug5446Test.class.getResource("/bug5446/yang/foo.yang").toURI()));
+        schemaContext = YangParserTestUtils.parseYangResources(Bug5446Test.class, "/bug5446/yang/foo.yang");
     }
 
     @Test