Remove static RestconfImpl
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / java / org / opendaylight / controller / sal / restconf / impl / test / RestPutConfigTest.java
index 043f78b807ef931459cf82642c4a18db82d599e2..94a8284d82e980b8e6af0fd8970ec3a281888df6 100644 (file)
@@ -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);
     }
 }