use of org.eclipse.smarthome.binding.dmx.handler.ChaserThingHandler in project smarthome by eclipse.
the class ChaserThingHandlerTest method testThingStatus_noBridge.
@Test
public void testThingStatus_noBridge() {
thingProperties.put(CONFIG_CHASER_STEPS, TEST_STEPS_INFINITE);
initialize();
// check that thing is offline if no bridge found
ChaserThingHandler chaserHandlerWithoutBridge = new ChaserThingHandler(chaserThing) {
@Override
@Nullable
protected Bridge getBridge() {
return null;
}
};
assertThingStatusWithoutBridge(chaserHandlerWithoutBridge);
}
use of org.eclipse.smarthome.binding.dmx.handler.ChaserThingHandler in project smarthome by eclipse.
the class ChaserThingHandlerTest method initialize.
private void initialize() {
chaserThing = ThingBuilder.create(THING_TYPE_CHASER, "testchaser").withLabel("Chaser Thing").withBridge(bridge.getUID()).withConfiguration(new Configuration(thingProperties)).withChannel(ChannelBuilder.create(CHANNEL_UID_SWITCH, "Switch").withType(SWITCH_CHANNEL_TYPEUID).build()).build();
chaserThingHandler = new ChaserThingHandler(chaserThing) {
@Override
@Nullable
protected Bridge getBridge() {
return bridge;
}
};
initializeHandler(chaserThingHandler);
}
Aggregations