X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Frestconf-nb-bierman02%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Fimpl%2Ftest%2FRestPutConfigTest.java;h=94a8284d82e980b8e6af0fd8970ec3a281888df6;hb=26910f0052a4ac3022067f33ceccf4b056004691;hp=043f78b807ef931459cf82642c4a18db82d599e2;hpb=cb1d2f74b370c16357af975a136e687fba3303e6;p=netconf.git diff --git a/restconf/restconf-nb-bierman02/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/RestPutConfigTest.java b/restconf/restconf-nb-bierman02/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/RestPutConfigTest.java index 043f78b807..94a8284d82 100644 --- a/restconf/restconf-nb-bierman02/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/RestPutConfigTest.java +++ b/restconf/restconf-nb-bierman02/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/RestPutConfigTest.java @@ -55,9 +55,8 @@ public class RestPutConfigTest { @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 @@ -140,6 +139,5 @@ public class RestPutConfigTest { .thenReturn(result); Mockito.when(result.getFutureOfPutData()).thenReturn(checkedFuture); Mockito.when(result.getStatus()).thenReturn(Status.OK); - this.restconfService.setBroker(this.brokerFacade); } }