diff --git a/bundles/org.openhab.binding.supla/src/test/java/org/openhab/binding/supla/handler/CloudDeviceHandlerTest.java b/bundles/org.openhab.binding.supla/src/test/java/org/openhab/binding/supla/handler/CloudDeviceHandlerTest.java index 6e587fb527462..fea7768b9fe1c 100644 --- a/bundles/org.openhab.binding.supla/src/test/java/org/openhab/binding/supla/handler/CloudDeviceHandlerTest.java +++ b/bundles/org.openhab.binding.supla/src/test/java/org/openhab/binding/supla/handler/CloudDeviceHandlerTest.java @@ -576,6 +576,22 @@ void dimmerAndRgbNotRefresh() throws Exception { verify(callback, times(0)).stateUpdated(eq(channelUID), any()); } + @Test + @DisplayName("should refresh roller shutter") + void reollerShutterRefresh() throws Exception { + + // given + final ChannelUID channelUID = findRollerShutterChannelUID(); + final int shut = 13; + given(rollerShutterChannel.getState()).willReturn(new ChannelState().setShut(shut)); + + // when + handler.handleRefreshCommand(channelUID); + + // then + verifyUpdateState(channelUID, new PercentType(shut)); + } + ChannelUID buildChannelUID(int id) { return new ChannelUID(thingUID, valueOf(id)); }