use of org.opendaylight.netconf.sal.restconf.impl.JSONRestconfServiceImpl in project netconf by opendaylight.
the class JSONRestconfServiceImplTest method setup.
@Before
public void setup() throws FileNotFoundException {
final EffectiveModelContext mountPointSchemaContext = TestUtils.loadSchemaContext("/full-versions/test-module");
final ControllerContext controllerContext = TestRestconfUtils.newControllerContext(schemaContext, mockMountPoint);
doReturn(java.util.Optional.of(FixedDOMSchemaService.of(() -> mountPointSchemaContext))).when(mockMountPoint).getService(eq(DOMSchemaService.class));
service = new JSONRestconfServiceImpl(controllerContext, RestconfImpl.newInstance(brokerFacade, controllerContext));
}
Aggregations