use of org.opendaylight.netconf.sal.restconf.impl.ControllerContext in project netconf by opendaylight.
the class RestPutListDataTest method initialize.
@Before
public void initialize() throws FileNotFoundException {
final ControllerContext controllerContext = TestRestconfUtils.newControllerContext(schemaContextTestModule);
brokerFacade = mock(BrokerFacade.class);
restconfImpl = RestconfImpl.newInstance(brokerFacade, controllerContext);
final PutResult result = mock(PutResult.class);
when(brokerFacade.commitConfigurationDataPut(any(EffectiveModelContext.class), any(YangInstanceIdentifier.class), any(NormalizedNode.class), Mockito.anyString(), Mockito.anyString())).thenReturn(result);
when(result.getFutureOfPutData()).thenReturn(mock(FluentFuture.class));
when(result.getStatus()).thenReturn(Status.OK);
}
Aggregations