]> git.basschouten.com Git - openhab-addons.git/commitdiff
[irobot] fix test (#10958)
authorrimago <fb@java4.info>
Wed, 7 Jul 2021 18:16:19 +0000 (20:16 +0200)
committerGitHub <noreply@github.com>
Wed, 7 Jul 2021 18:16:19 +0000 (20:16 +0200)
Signed-off-by: Florian Binder <fb@java4.info>
bundles/org.openhab.binding.irobot/src/test/java/org/openhab/binding/irobot/internal/handler/RoombaHandlerTest.java

index 395768ff4820c82c9d0807408797c9e29633237e..62ec1d55d3eade4c6ebfdfb68cf12bfdf5bc4c82 100644 (file)
@@ -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"));