Fix disabled integration tests (#8609)
* Fix disabled integration tests Fixes and enables: * org.openhab.binding.mqtt.homeassistant.tests * org.openhab.binding.mqtt.homie.tests * org.openhab.io.mqttembeddedbroker.tests Fixes #8537 * Address review comment Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
package org.openhab.binding.mqtt.homie.internal.handler;
|
||||
|
||||
import static org.eclipse.jdt.annotation.Checks.requireNonNull;
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
@@ -249,7 +250,7 @@ public class HomieThingHandlerTests {
|
||||
node.properties.put(property.propertyID, property);
|
||||
thingHandler.device.nodes.put(node.nodeID, node);
|
||||
|
||||
ChannelState channelState = property.getChannelState();
|
||||
ChannelState channelState = requireNonNull(property.getChannelState());
|
||||
assertNotNull(channelState);
|
||||
ChannelStateHelper.setConnection(channelState, connection);// Pretend we called start()
|
||||
ThingHandlerHelper.setConnection(thingHandler, connection);
|
||||
|
||||
Reference in New Issue
Block a user