use of org.eclipse.smarthome.binding.homematic.handler.HomematicBridgeHandler in project smarthome by eclipse.
the class HomematicDeviceDiscoveryServiceTest method mockHomematicBridgeHandler.
private HomematicBridgeHandler mockHomematicBridgeHandler() throws IOException {
HomematicBridgeHandler homematicBridgeHandler = mock(HomematicBridgeHandler.class);
Bridge bridge = createHomematicBridge();
HomematicGateway homematicGateway = mockHomematicGateway();
HomematicTypeGenerator homematicTypeGenerator = mockHomematicTypeGenerator();
when(homematicBridgeHandler.getThing()).thenReturn(bridge);
when(homematicBridgeHandler.getGateway()).thenReturn(homematicGateway);
when(homematicBridgeHandler.getTypeGenerator()).thenReturn(homematicTypeGenerator);
return homematicBridgeHandler;
}
Aggregations