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 e1063580f14e8..77cd2972f488c 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 @@ -239,8 +239,8 @@ void lightChannelOff() throws Exception { assertThat(value.getAction()).isEqualTo(TURN_OFF); } - @DisplayName("OPEN gate, garage") - @ParameterizedTest(name = "[{index}] should send request to Supla Cloud to open {0}") + @DisplayName("should send request to Supla Cloud to open gate or garage door") + @ParameterizedTest @ValueSource(strings = {"gateChannelId", "garageDoorChannelId"}) void gateChannelOn(String idFieldName) throws Exception { @@ -257,9 +257,9 @@ void gateChannelOn(String idFieldName) throws Exception { assertThat(value.getAction()).isEqualTo(OPEN); } - @ParameterizedTest(name = "[{index}] should send request to Supla Cloud to close {0}") + @ParameterizedTest @ValueSource(strings = {"gateChannelId", "garageDoorChannelId"}) - @DisplayName("CLOSE gate, garage") + @DisplayName("should send request to Supla Cloud to close gate or garage door") void gateChannelOff(String idFieldName) throws Exception { // given @@ -275,8 +275,8 @@ void gateChannelOff(String idFieldName) throws Exception { assertThat(value.getAction()).isEqualTo(CLOSE); } - @DisplayName("OPEN gate, garage") - @ParameterizedTest(name = "[{index}] should send request to Supla Cloud to open {0}") + @DisplayName("should send request to Supla Cloud to open gate or garage door") + @ParameterizedTest @ValueSource(strings = {"gateChannelId", "garageDoorChannelId"}) void gateChannelOpen(String idFieldName) throws Exception { @@ -293,9 +293,9 @@ void gateChannelOpen(String idFieldName) throws Exception { assertThat(value.getAction()).isEqualTo(OPEN); } - @ParameterizedTest(name = "[{index}] should send request to Supla Cloud to close {0}") + @ParameterizedTest @ValueSource(strings = {"gateChannelId", "garageDoorChannelId"}) - @DisplayName("CLOSE gate, garage") + @DisplayName("should send request to Supla Cloud to close gate or garage door") void gateChannelClose(String idFieldName) throws Exception { // given @@ -361,7 +361,7 @@ void revealPartiallyRollerShutter() throws Exception { assertThat(value.getPercentage()).isEqualTo(percentage); } - @ParameterizedTest(name = "[{index}] {0}") + @ParameterizedTest @ValueSource(strings = {"rgbChannelId", "dimmerAndRgbChannelId"}) @DisplayName("should send request to LedExecutor to change color brightness") void revealPartiallyRollerShutter(String idFieldName) throws Exception {