diff --git a/bundles/org.openhab.binding.irobot/src/test/java/org/openhab/binding/irobot/internal/handler/RoombaHandlerTest.java b/bundles/org.openhab.binding.irobot/src/test/java/org/openhab/binding/irobot/internal/handler/RoombaHandlerTest.java index 395768ff482..62ec1d55d3e 100644 --- a/bundles/org.openhab.binding.irobot/src/test/java/org/openhab/binding/irobot/internal/handler/RoombaHandlerTest.java +++ b/bundles/org.openhab.binding.irobot/src/test/java/org/openhab/binding/irobot/internal/handler/RoombaHandlerTest.java @@ -75,7 +75,7 @@ public class RoombaHandlerTest { config.put("ipaddress", RoombaHandlerTest.IP_ADDRESS); config.put("password", RoombaHandlerTest.PASSWORD); Mockito.when(thing.getConfiguration()).thenReturn(config); - Mockito.when(thing.getStatusInfo()) + Mockito.lenient().when(thing.getStatusInfo()) .thenReturn(new ThingStatusInfo(ThingStatus.UNINITIALIZED, ThingStatusDetail.NONE, "mocked")); Mockito.lenient().when(thing.getUID()).thenReturn(new ThingUID("mocked", "irobot", "uid"));