Skip to content

Commit 77c729b

Browse files
authored
bugfix unit test status online (openhab#18358)
Signed-off-by: Bernd Weymann <[email protected]>
1 parent 4fc8f75 commit 77c729b

File tree

1 file changed

+7
-0
lines changed
  • bundles/org.openhab.binding.casokitchen/src/test/java/org/openhab/binding/caso/internal

1 file changed

+7
-0
lines changed

bundles/org.openhab.binding.casokitchen/src/test/java/org/openhab/binding/caso/internal/TestHandler.java

+7
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ void testConfigErrors() {
113113
assertEquals(ThingStatus.OFFLINE, tsi.getStatus());
114114
assertEquals(ThingStatusDetail.CONFIGURATION_ERROR, tsi.getStatusDetail());
115115
assertEquals("@text/casokitchen.winecooler-2z.status.device-id-missing", tsi.getDescription());
116+
117+
config.put("deviceId", "xyz");
118+
thing.setConfiguration(config);
119+
winecoolerHandler.initialize();
120+
callback.waitForOnline();
121+
tsi = thing.getStatusInfo();
122+
assertEquals(ThingStatus.ONLINE, tsi.getStatus());
116123
}
117124

118125
@Test

0 commit comments

Comments
 (0)