@Ignore("XMLEmptyCodec needs to be fixed first.")
@Test
public void testInstanceIdentifierPathWithEmptyListKey() throws Exception {
- final SchemaContext schemaContext = YangParserTestUtils.parseYangSource("/bug8083/yang/baz.yang");
+ final SchemaContext schemaContext = YangParserTestUtils.parseYangResource("/bug8083/yang/baz.yang");
final Module bazModule = schemaContext.getModules().iterator().next();
final ContainerSchemaNode topCont = (ContainerSchemaNode) bazModule.getDataChildByName(
QName.create(bazModule.getQNameModule(), "top-cont"));
@Test
public void testInstanceIdentifierPathWithIdentityrefListKey() throws Exception {
- final SchemaContext schemaContext = YangParserTestUtils.parseYangSource("/bug8083/yang/zab.yang");
+ final SchemaContext schemaContext = YangParserTestUtils.parseYangResource("/bug8083/yang/zab.yang");
final Module zabModule = schemaContext.getModules().iterator().next();
final ContainerSchemaNode topCont = (ContainerSchemaNode) zabModule.getDataChildByName(
QName.create(zabModule.getQNameModule(), "top-cont"));
@Test
public void testInstanceIdentifierPathWithInstanceIdentifierListKey() throws Exception {
- final SchemaContext schemaContext = YangParserTestUtils.parseYangSource("/bug8083/yang/foobar.yang");
+ final SchemaContext schemaContext = YangParserTestUtils.parseYangResource("/bug8083/yang/foobar.yang");
final Module foobarModule = schemaContext.getModules().iterator().next();
final ContainerSchemaNode topCont = (ContainerSchemaNode) foobarModule.getDataChildByName(
QName.create(foobarModule.getQNameModule(), "top-cont"));