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");
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
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());
}
}
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());
}
}