Convert yang-data-impl to a JPMS module
[yangtools.git] / yang / yang-data-impl / src / test / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / Bug8291Test.java
index b4b31c0a81c06ea16496e67456b11c1c85673fe9..2199d4891728d0db78894df2372d221ae9998d8b 100644 (file)
@@ -25,23 +25,24 @@ import org.opendaylight.yangtools.yang.data.api.schema.tree.DataValidationFailed
 import org.opendaylight.yangtools.yang.data.api.schema.tree.TreeType;
 import org.opendaylight.yangtools.yang.data.impl.schema.Builders;
 import org.opendaylight.yangtools.yang.data.impl.schema.ImmutableNodes;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
 
 public class Bug8291Test {
-    private static final String NS = "foo";
+    private static final String NS = "bug8291";
     private static final QName ROOT = QName.create(NS, "root");
     private static final QName OUTER_LIST = QName.create(NS, "outer-list");
     private static final QName OUTER_LIST_ID = QName.create(NS, "id");
     private static final QName INNER_LIST = QName.create(NS, "inner-list");
-    private SchemaContext schemaContext;
+
+    private EffectiveModelContext schemaContext;
 
     @Before
     public void init() {
-        this.schemaContext = TestModel.createTestContext("/bug8291/foo.yang");
+        this.schemaContext = TestModel.createTestContext("/bug8291.yang");
         assertNotNull("Schema context must not be null.", this.schemaContext);
     }
 
-    private static DataTree initDataTree(final SchemaContext schemaContext)
+    private static DataTree initDataTree(final EffectiveModelContext schemaContext)
             throws DataValidationFailedException {
         final DataTreeConfiguration config = new DataTreeConfiguration.Builder(TreeType.CONFIGURATION).setRootPath(
                 YangInstanceIdentifier.of(ROOT).node(OUTER_LIST)).build();