Bug 4656: Yang parser does not determine configuration true or false properly
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / test / KeyTest.java
index d0ef8c2fe3d0e87c333db4b8fc902f009b422129..bf6fef1fabf482182b18cbebc699fd17920b43f5 100644 (file)
@@ -11,7 +11,6 @@ package org.opendaylight.yangtools.yang.stmt.test;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.fail;
-
 import org.junit.Test;
 import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
 import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
@@ -23,9 +22,9 @@ import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.YangStatementSourceIm
 public class KeyTest {
 
     private static final YangStatementSourceImpl KEY_SIMPLE_AND_COMP = new YangStatementSourceImpl(
-            "/semantic-statement-parser/key-arg-parsing/key-simple-and-comp.yang");
+            "/semantic-statement-parser/key-arg-parsing/key-simple-and-comp.yang", false);
     private static final YangStatementSourceImpl KEY_COMP_DUPLICATE = new YangStatementSourceImpl(
-            "/semantic-statement-parser/key-arg-parsing/key-comp-duplicate.yang");
+            "/semantic-statement-parser/key-arg-parsing/key-comp-duplicate.yang", false);
 
     @Test
     public void keySimpleTest() throws SourceException, ReactorException {
@@ -51,7 +50,7 @@ public class KeyTest {
         }
     }
 
-    private void addSources(BuildAction reactor, YangStatementSourceImpl... sources) {
+    private static void addSources(final BuildAction reactor, final YangStatementSourceImpl... sources) {
         for (YangStatementSourceImpl source : sources) {
             reactor.addSource(source);
         }