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;
/**
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"));
}
<module>org.openhab.binding.max.tests</module>
<module>org.openhab.binding.modbus.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.tradfri.tests</module>
<module>org.openhab.binding.wemo.tests</module>