Remove deprecated Yin/YangStatementSourceImpl
[yangtools.git] / yang / yang-model-export / src / test / java / org / opendaylight / yangtools / yang / model / export / test / Bug6856Test.java
index 2b6cc409b2469f8e8e07e9f4e7fec202c5c881af..1f56603869501806736e60ed7fde2c9452abcccf 100644 (file)
@@ -27,7 +27,8 @@ public class Bug6856Test {
 
     @Test
     public void testImplicitInputAndOutputInRpc() throws Exception {
-        final SchemaContext schemaContext = YangParserTestUtils.parseYangSource("/bugs/bug6856/foo.yang");
+        final SchemaContext schemaContext = YangParserTestUtils.parseYangResources(Bug6856Test.class,
+            "/bugs/bug6856/foo.yang");
         assertNotNull(schemaContext);
 
         final OutputStream byteArrayOutputStream = new ByteArrayOutputStream();
@@ -48,7 +49,8 @@ public class Bug6856Test {
 
     @Test
     public void testExplicitInputAndOutputInRpc() throws Exception {
-        final SchemaContext schemaContext = YangParserTestUtils.parseYangSource("/bugs/bug6856/bar.yang");
+        final SchemaContext schemaContext = YangParserTestUtils.parseYangResources(Bug6856Test.class,
+            "/bugs/bug6856/bar.yang");
         assertNotNull(schemaContext);
 
         final OutputStream byteArrayOutputStream = new ByteArrayOutputStream();