[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 <github@maindrain.net>
This commit is contained in:
parent
5d729d923a
commit
5594150e54
@ -69,6 +69,7 @@ import org.openhab.core.thing.type.ChannelKind;
|
|||||||
import org.openhab.core.thing.type.ChannelTypeBuilder;
|
import org.openhab.core.thing.type.ChannelTypeBuilder;
|
||||||
import org.openhab.core.thing.type.ChannelTypeProvider;
|
import org.openhab.core.thing.type.ChannelTypeProvider;
|
||||||
import org.openhab.core.thing.type.ChannelTypeUID;
|
import org.openhab.core.thing.type.ChannelTypeUID;
|
||||||
|
import org.openhab.core.types.RefreshType;
|
||||||
import org.openhab.core.types.State;
|
import org.openhab.core.types.State;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -489,7 +490,7 @@ public class NtpOSGiTest extends JavaOSGiTest {
|
|||||||
registerService(eventSubscriberMock);
|
registerService(eventSubscriberMock);
|
||||||
|
|
||||||
if (updateEventType.equals(UpdateEventType.HANDLE_COMMAND)) {
|
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)) {
|
} else if (updateEventType.equals(UpdateEventType.CHANNEL_LINKED)) {
|
||||||
ntpHandler.channelLinked(new ChannelUID("ntp:test:chan:1"));
|
ntpHandler.channelLinked(new ChannelUID("ntp:test:chan:1"));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,6 +23,7 @@
|
|||||||
<module>org.openhab.binding.max.tests</module>
|
<module>org.openhab.binding.max.tests</module>
|
||||||
<module>org.openhab.binding.modbus.tests</module>
|
<module>org.openhab.binding.modbus.tests</module>
|
||||||
<module>org.openhab.binding.nest.tests</module>
|
<module>org.openhab.binding.nest.tests</module>
|
||||||
|
<module>org.openhab.binding.ntp.tests</module>
|
||||||
<module>org.openhab.binding.systeminfo.tests</module>
|
<module>org.openhab.binding.systeminfo.tests</module>
|
||||||
<module>org.openhab.binding.tradfri.tests</module>
|
<module>org.openhab.binding.tradfri.tests</module>
|
||||||
<module>org.openhab.binding.wemo.tests</module>
|
<module>org.openhab.binding.wemo.tests</module>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user