Remove deprecated Yin/YangStatementSourceImpl
[yangtools.git] / yang / yang-data-impl / src / test / java / org / opendaylight / yangtools / yang / data / impl / leafref / context / Bug8713Test.java
index e32335f80eb1790a4afe495b45cbbd57539e4612..24163dadef629f24c2a986b3f409347597f3856e 100644 (file)
@@ -31,7 +31,7 @@ public class Bug8713Test {
 
     @Test
     public void dataTreeCanditateValidationTest() throws Exception {
-        final SchemaContext context = YangParserTestUtils.parseYangSources("/bug8713/");
+        final SchemaContext context = YangParserTestUtils.parseYangResourceDirectory("/bug8713/");
         final LeafRefContext rootLeafRefContext = LeafRefContext.create(context);
         final TipProducingDataTree inMemoryDataTree = InMemoryDataTreeFactory.getInstance()
                 .create(DataTreeConfiguration.DEFAULT_OPERATIONAL);
@@ -49,7 +49,7 @@ public class Bug8713Test {
         inMemoryDataTree.commit(writeContributorsCandidate);
     }
 
-    private ContainerNode createRootContainer() {
+    private static ContainerNode createRootContainer() {
         return Builders.containerBuilder().withNodeIdentifier(new NodeIdentifier(foo("root")))
                 .withChild(ImmutableNodes.leafNode(bar("target"), "target value"))
                 .withChild(ImmutableNodes.leafNode(bar("ref"), "target value")).build();