Search in sources :

Example 1 with HomematicTypeGenerator

use of org.eclipse.smarthome.binding.homematic.internal.type.HomematicTypeGenerator 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;
}
Also used : HomematicBridgeHandler(org.eclipse.smarthome.binding.homematic.handler.HomematicBridgeHandler) HomematicGateway(org.eclipse.smarthome.binding.homematic.internal.communicator.HomematicGateway) BridgeHelper.createHomematicBridge(org.eclipse.smarthome.binding.homematic.test.util.BridgeHelper.createHomematicBridge) Bridge(org.eclipse.smarthome.core.thing.Bridge) HomematicTypeGenerator(org.eclipse.smarthome.binding.homematic.internal.type.HomematicTypeGenerator)

Aggregations

HomematicBridgeHandler (org.eclipse.smarthome.binding.homematic.handler.HomematicBridgeHandler)1 HomematicGateway (org.eclipse.smarthome.binding.homematic.internal.communicator.HomematicGateway)1 HomematicTypeGenerator (org.eclipse.smarthome.binding.homematic.internal.type.HomematicTypeGenerator)1 BridgeHelper.createHomematicBridge (org.eclipse.smarthome.binding.homematic.test.util.BridgeHelper.createHomematicBridge)1 Bridge (org.eclipse.smarthome.core.thing.Bridge)1