Proxy DOMRpcRouter to the mdsal implementation
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / test / java / org / opendaylight / controller / sal / binding / test / util / BindingTestContext.java
index a5b55a3f9dc787b67831a7d69e8ec6f429567958..29f7cd33347ae8e9fc6d3d00ada5345573f38db2 100644 (file)
@@ -208,8 +208,9 @@ public class BindingTestContext implements AutoCloseable {
     private void startDomBroker() {
         checkState(this.executor != null);
 
-        this.domRouter = new DOMRpcRouter();
-        this.mockSchemaService.registerSchemaContextListener(this.domRouter);
+        org.opendaylight.mdsal.dom.broker.DOMRpcRouter delegate =
+                org.opendaylight.mdsal.dom.broker.DOMRpcRouter.newInstance(mockSchemaService);
+        this.domRouter = new DOMRpcRouter(delegate, delegate);
 
         final ClassToInstanceMap<BrokerService> services = MutableClassToInstanceMap.create();
         services.put(DOMRpcService.class, this.domRouter);