QName.create(testModule.getQNameModule(), "data"));
assertNotNull("'anyxml data not found'", data);
assertFalse(data.equals(null));
- assertEquals("RegularAnyxmlEffectiveStatement{qname=(urn:opendaylight:simple-nodes?revision=2013-07-30)data, "
- + "path=AbsoluteSchemaPath{path=[(urn:opendaylight:simple-nodes?revision=2013-07-30)data]}}",
+ assertEquals("RegularAnyxmlEffectiveStatement{qname=(urn:opendaylight:simple-nodes?revision=2013-07-30)data}",
data.toString());
// test SchemaNode args
QName.create(testModule.getQNameModule(), "data2")).orElse(null);
assertNotNull("'anydata data not found'", anydata);
- assertEquals("RegularAnydataEffectiveStatement{qname=(urn:opendaylight:simple-nodes?revision=2013-07-30)data2, "
- + "path=AbsoluteSchemaPath{path=[(urn:opendaylight:simple-nodes?revision=2013-07-30)data2]}}",
+ assertEquals("RegularAnydataEffectiveStatement{qname=(urn:opendaylight:simple-nodes?revision=2013-07-30)data2}",
anydata.toString());
// test SchemaNode args
final TypeDefinition<?> nodesType = typedefs.iterator().next();
final QName typedefQName = QName.create(SN, "nodes-type");
assertEquals(typedefQName, nodesType.getQName());
- assertEquals(SN_NODES_PATH.createChild(QName.create(SN, "nodes-type")), nodesType.getPath());
assertFalse(nodesType.getDescription().isPresent());
assertFalse(nodesType.getReference().isPresent());
assertEquals(Status.CURRENT, nodesType.getStatus());
final LeafListSchemaNode added = (LeafListSchemaNode)nodes.getDataChildByName(QName.create(
testModule.getQNameModule(), "added"));
assertEquals(createPath("nodes", "added"), added.getPath());
- assertEquals(createPath("mytype"), added.getType().getPath());
+ assertEquals(createPath("mytype").getLastComponent(), added.getType().getQName());
final ListSchemaNode links = (ListSchemaNode) nodes.getDataChildByName(QName.create(
testModule.getQNameModule(), "links"));
final Collection<? extends GroupingDefinition> groupings = nodes.getGroupings();
assertEquals(1, groupings.size());
final GroupingDefinition nodeGroup = groupings.iterator().next();
- final QName groupQName = QName.create(SN, "node-group");
- assertEquals(groupQName, nodeGroup.getQName());
- final SchemaPath nodeGroupPath = SN_NODES_PATH.createChild(groupQName);
- assertEquals(nodeGroupPath, nodeGroup.getPath());
+ assertEquals(QName.create(SN, "node-group"), nodeGroup.getQName());
final Collection<? extends UsesNode> uses = nodes.getUses();
assertEquals(1, uses.size());