- dataLoad("/instanceidentifier/yang", 3, "instance-identifier-module", "cont");
- }
-
- @Test
- public void snAsYangInstanceIdentifier() throws WebApplicationException, IOException, URISyntaxException {
- CompositeNode cnSnData = prepareCnStructForYangData( );
- String xmlOutput = TestUtils.writeCompNodeWithSchemaContextToOutput(cnSnData, modules, dataSchemaNode,
- StructuredDataToXmlProvider.INSTANCE);
- assertNotNull(xmlOutput);
- }
-
- private CompositeNode prepareCnStructForYangData() throws URISyntaxException {
- CompositeNodeWrapper cont = new CompositeNodeWrapper(new URI("instance:identifier:module"), "cont");
- CompositeNodeWrapper cont1 = new CompositeNodeWrapper(new URI("augment:module"), "cont1");
- cont.addValue(cont1);
- SimpleNodeWrapper lf11 = new SimpleNodeWrapper(new URI("augment:augment:module"), "lf11", "/cont/cont1/lf12");
- SimpleNodeWrapper lf12 = new SimpleNodeWrapper(new URI("augment:augment:module"), "lf12", "lf12 value");
- cont1.addValue(lf11);
- cont1.addValue(lf12);
- cont.unwrap();
- return cont;
+ dataLoad("/instanceidentifier/yang", 4, "instance-identifier-module", "cont");