Remove static TransactionChainHandler instance
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / java / org / opendaylight / restconf / nb / rfc8040 / rests / services / impl / JSONRestconfServiceRfc8040ImplTest.java
index 016abcee7f7b1ed648393c3c05455394ee924bcf..c8821e8e7b842040e22b2fa051c051791941687d 100644 (file)
@@ -179,7 +179,7 @@ public class JSONRestconfServiceRfc8040ImplTest {
 
         doReturn(schemaContext).when(mockSchemaContextHandler).get();
 
-        final TransactionChainHandler txChainHandler = new TransactionChainHandler(mockTxChain);
+        final TransactionChainHandler txChainHandler = new TransactionChainHandler(mockDOMDataBroker);
 
         final DOMMountPointServiceHandler mountPointServiceHandler =
                 new DOMMountPointServiceHandler(mockMountPointService);
@@ -193,7 +193,7 @@ public class JSONRestconfServiceRfc8040ImplTest {
         service = new JSONRestconfServiceRfc8040Impl(ServicesWrapperImpl.getInstance(), mountPointServiceHandler);
 
         new RestConnectorProvider<>(mockDOMDataBroker, domSchemaService, mockRpcService, mockNotificationService,
-                mockMountPointService).start();
+                mockMountPointService, txChainHandler, null).start();
 
         SchemaContextHandler.setSchemaContext(schemaContext);
     }