Split out AbstractValidation
[yangtools.git] / yang / yang-data-impl / src / test / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / YT776Test.java
index 2186464237115cb6f7ac67402254a9c7be7327d1..d6295726a3569bf9330e8d2848cf71f51a8cd732 100644 (file)
@@ -31,7 +31,7 @@ import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTree;
 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeConfiguration;
 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification;
 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataValidationFailedException;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
 
 public class YT776Test {
     private static final QName MODULE = QName.create("yt776", "yt776");
@@ -58,13 +58,13 @@ public class YT776Test {
     private static final NodeIdentifier SOME_LIST_ID = new NodeIdentifier(SOME_LIST);
     private static final NodeIdentifierWithPredicates SOME_LIST_ITEM = NodeIdentifierWithPredicates.of(SOME_LIST,
                 ImmutableMap.of(SOME_LEAF, "foo"));
-    private static SchemaContext SCHEMA_CONTEXT;
+    private static EffectiveModelContext SCHEMA_CONTEXT;
 
     private DataTree dataTree;
 
     @BeforeClass
     public static void beforeClass() {
-        SCHEMA_CONTEXT = TestModel.createTestContext("/yt776/yt776.yang");
+        SCHEMA_CONTEXT = TestModel.createTestContext("/yt776.yang");
     }
 
     @AfterClass
@@ -114,7 +114,7 @@ public class YT776Test {
             mod.ready();
             fail("Should fail with IAE");
         } catch (IllegalArgumentException e) {
-            assertEquals("Node (yt776)attributes does not have enough elements (0), needs at least 1", e.getMessage());
+            assertEquals("(yt776)attributes does not have enough elements (0), needs at least 1", e.getMessage());
         }
     }
 
@@ -166,7 +166,7 @@ public class YT776Test {
             mod.ready();
             fail("Should fail with IAE");
         } catch (IllegalArgumentException e) {
-            assertEquals("Node (yt776)attributes has too many elements (3), can have at most 2", e.getMessage());
+            assertEquals("(yt776)attributes has too many elements (3), can have at most 2", e.getMessage());
         }
     }