private static SchemaContext schemaContext;
private final NormalizedNodeJsonBodyWriter xmlBodyWriter;
- public NnToJsonWithAugmentTest() throws NoSuchFieldException,
- SecurityException {
+ public NnToJsonWithAugmentTest() {
+ super(schemaContext, null);
xmlBodyWriter = new NormalizedNodeJsonBodyWriter();
}
@BeforeClass
public static void initialize() {
- schemaContext = schemaContextLoader("/nn-to-json/augmentation",
- schemaContext);
- CONTROLLER_CONTEXT.setSchemas(schemaContext);
+ schemaContext = schemaContextLoader("/nn-to-json/augmentation", schemaContext);
}
@Test
final String pathToInputFile = "/nn-to-json/augmentation/xml/data.xml";
final NormalizedNodeContext testNN = TestRestconfUtils
- .loadNormalizedContextFromXmlFile(pathToInputFile, uri);
+ .loadNormalizedContextFromXmlFile(pathToInputFile, uri, controllerContext);
final OutputStream output = new ByteArrayOutputStream();
xmlBodyWriter