contData.withChild(SchemaAwareBuilders.leafBuilder((LeafSchemaNode) schemaLf).withValue(object).build());
- final NormalizedNodeContext testNormalizedNodeContext = new NormalizedNodeContext(
- new InstanceIdentifierContext(null, contSchema, null, schemaContext), contData.build());
-
- return testNormalizedNodeContext;
+ return new NormalizedNodeContext(InstanceIdentifierContext.ofDataSchemaNode(schemaContext, contSchema),
+ contData.build());
}
private void nnToXml(final NormalizedNodeContext normalizedNodeContext, final String... xmlRepresentation)
contData.withChild(SchemaAwareBuilders.leafBuilder((LeafSchemaNode) schemaLf).withValue("true").build());
final NormalizedNodeContext testNormalizedNodeContext = new NormalizedNodeContext(
- new InstanceIdentifierContext(null, contSchema, null, schemaContext), contData.build());
+ InstanceIdentifierContext.ofDataSchemaNode(schemaContext, contSchema), contData.build());
return testNormalizedNodeContext;
}
contData.withChild(SchemaAwareBuilders.leafBuilder((LeafSchemaNode) schemaLf).withValue("value").build());
return new NormalizedNodeContext(
- new InstanceIdentifierContext(null, contSchema, null, schemaContext), contData.build());
+ InstanceIdentifierContext.ofDataSchemaNode(schemaContext, contSchema), contData.build());
}
private static NormalizedNodeContext prepareIdrefData(final String prefix, final boolean valueAsQName) {
contData.withChild(cont1Data.build());
final NormalizedNodeContext testNormalizedNodeContext = new NormalizedNodeContext(
- new InstanceIdentifierContext(null, contSchema, null, schemaContext), contData.build());
+ InstanceIdentifierContext.ofDataSchemaNode(schemaContext, contSchema), contData.build());
return testNormalizedNodeContext;
}