[irobot] fix test (#10958)

Signed-off-by: Florian Binder <fb@java4.info>
This commit is contained in:
rimago 2021-07-07 20:16:19 +02:00 committed by GitHub
parent a06be4785f
commit ab816b08c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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"));