- public void testOnTopologyDeviceDisconnected() throws Exception {
- mountInstance.onTopologyDeviceConnected(SCHEMA_CONTEXT, broker, rpcService, notificationService);
+ public void testOnTopologyDeviceConnectedWithNetconfService() {
+ mountInstance.onTopologyDeviceConnected(SCHEMA_CONTEXT, null, netconfService, rpcService,
+ notificationService, null);
+ verify(mountPointBuilder).addService(eq(DOMSchemaService.class), any());
+ verify(mountPointBuilder).addService(NetconfDataTreeService.class, netconfService);
+ verify(mountPointBuilder).addService(DOMRpcService.class, rpcService);
+ verify(mountPointBuilder).addService(DOMNotificationService.class, notificationService);
+ }
+
+ @Test
+ public void testOnTopologyDeviceDisconnected() {
+ mountInstance.onTopologyDeviceConnected(SCHEMA_CONTEXT, broker, null, rpcService,
+ notificationService, null);