From 5594150e544c6e204d752f56a56414bd0538a748 Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Thu, 24 Sep 2020 08:42:12 +0200 Subject: [PATCH] [ntp] Reenable itest (#8565) With these changes and working channelLink events (openhab/openhab-core#1634) the ntp itest works again. Signed-off-by: Wouter Born --- .../main/java/org/openhab/binding/ntp/test/NtpOSGiTest.java | 3 ++- itests/pom.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/itests/org.openhab.binding.ntp.tests/src/main/java/org/openhab/binding/ntp/test/NtpOSGiTest.java b/itests/org.openhab.binding.ntp.tests/src/main/java/org/openhab/binding/ntp/test/NtpOSGiTest.java index 7d3ca1fbd..0a0dcb92d 100644 --- a/itests/org.openhab.binding.ntp.tests/src/main/java/org/openhab/binding/ntp/test/NtpOSGiTest.java +++ b/itests/org.openhab.binding.ntp.tests/src/main/java/org/openhab/binding/ntp/test/NtpOSGiTest.java @@ -69,6 +69,7 @@ import org.openhab.core.thing.type.ChannelKind; import org.openhab.core.thing.type.ChannelTypeBuilder; import org.openhab.core.thing.type.ChannelTypeProvider; import org.openhab.core.thing.type.ChannelTypeUID; +import org.openhab.core.types.RefreshType; import org.openhab.core.types.State; /** @@ -489,7 +490,7 @@ public class NtpOSGiTest extends JavaOSGiTest { registerService(eventSubscriberMock); if (updateEventType.equals(UpdateEventType.HANDLE_COMMAND)) { - ntpHandler.handleCommand(new ChannelUID("ntp:test:chan:1"), new StringType("test")); + ntpHandler.handleCommand(new ChannelUID("ntp:test:chan:1"), RefreshType.REFRESH); } else if (updateEventType.equals(UpdateEventType.CHANNEL_LINKED)) { ntpHandler.channelLinked(new ChannelUID("ntp:test:chan:1")); } diff --git a/itests/pom.xml b/itests/pom.xml index 5732fb391..96985c73c 100644 --- a/itests/pom.xml +++ b/itests/pom.xml @@ -23,6 +23,7 @@ org.openhab.binding.max.tests org.openhab.binding.modbus.tests org.openhab.binding.nest.tests + org.openhab.binding.ntp.tests org.openhab.binding.systeminfo.tests org.openhab.binding.tradfri.tests org.openhab.binding.wemo.tests