private final NormalizedNodeJsonBodyWriter jsonBodyWriter;
private static SchemaContext schemaContext;
- public TestJsonBodyWriter() throws NoSuchFieldException, SecurityException {
+ public TestJsonBodyWriter() {
+ super(schemaContext, null);
this.jsonBodyWriter = new NormalizedNodeJsonBodyWriter();
- this.jsonBodyReader = new JsonNormalizedNodeBodyReader();
+ this.jsonBodyReader = new JsonNormalizedNodeBodyReader(controllerContext);
}
@Override
final Collection<File> testFiles = TestRestconfUtils.loadFiles("/instanceidentifier/yang");
testFiles.addAll(TestRestconfUtils.loadFiles("/invoke-rpc"));
schemaContext = YangParserTestUtils.parseYangFiles(testFiles);
- CONTROLLER_CONTEXT.setSchemas(schemaContext);
}
@Test