@Before
public void init() {
- this.restconfService = RestconfImpl.getInstance();
this.controllerCx = TestRestconfUtils.newControllerContext(schemaContext);
- this.restconfService.setControllerContext(this.controllerCx);
+ this.restconfService = RestconfImpl.newInstance(brokerFacade, controllerCx);
}
@Test
.thenReturn(result);
Mockito.when(result.getFutureOfPutData()).thenReturn(checkedFuture);
Mockito.when(result.getStatus()).thenReturn(Status.OK);
- this.restconfService.setBroker(this.brokerFacade);
}
}