Fix build after core-changes (#14431)

Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
J-N-K
2023-02-18 15:24:58 +01:00
committed by GitHub
parent ce41708622
commit cb07f3e2f0
5 changed files with 34 additions and 20 deletions

View File

@@ -374,24 +374,6 @@ public class ModbusPollerThingHandlerTest extends AbstractModbusOSGiTest {
verifyNoMoreInteractions(mockedModbusManager);
}
@Test
public void testInitializeWithNoBridge()
throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
Configuration pollerConfig = new Configuration();
pollerConfig.put("refresh", 150L);
pollerConfig.put("start", 5);
pollerConfig.put("length", 13);
pollerConfig.put("type", "coil");
poller = createPollerThingBuilder("poller").withConfiguration(pollerConfig).build();
addThing(poller);
verifyEndpointBasicInitInteraction();
assertThat(poller.getStatus(), is(equalTo(ThingStatus.OFFLINE)));
assertThat(poller.getStatusInfo().getStatusDetail(), is(equalTo(ThingStatusDetail.BRIDGE_OFFLINE)));
verifyNoMoreInteractions(mockedModbusManager);
}
@Test
public void testInitializeWithOfflineBridge()
throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {