From dc1211b26709bd98cfc35946887e3f0b694cc272 Mon Sep 17 00:00:00 2001 From: Holger Friedrich Date: Wed, 21 Feb 2024 19:24:28 +0100 Subject: [PATCH] [knx] Fix warnings in test (#16434) Signed-off-by: Holger Friedrich --- .../openhab/binding/knx/internal/channel/KNXChannelTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.knx/src/test/java/org/openhab/binding/knx/internal/channel/KNXChannelTest.java b/bundles/org.openhab.binding.knx/src/test/java/org/openhab/binding/knx/internal/channel/KNXChannelTest.java index 00f702c3adf..30fc1b06928 100644 --- a/bundles/org.openhab.binding.knx/src/test/java/org/openhab/binding/knx/internal/channel/KNXChannelTest.java +++ b/bundles/org.openhab.binding.knx/src/test/java/org/openhab/binding/knx/internal/channel/KNXChannelTest.java @@ -197,7 +197,7 @@ class KNXChannelTest { Command command = new PercentType("90"); @Nullable OutboundSpec outboundSpec = knxChannel.getCommandSpec(command); - assertThat(outboundSpec, is(notNullValue())); + assertNotNull(outboundSpec); assertThat(outboundSpec.getGroupAddress(), is(new GroupAddress("1/2/2"))); String mappedValue = ValueEncoder.encode(outboundSpec.getValue(), outboundSpec.getDPT()); @@ -217,8 +217,9 @@ class KNXChannelTest { assertThat(knxChannel, instanceOf(TypeDimmer.class)); Command command = OnOffType.ON; + @Nullable OutboundSpec outboundSpec = knxChannel.getCommandSpec(command); - assertThat(outboundSpec, is(notNullValue())); + assertNotNull(outboundSpec); assertThat(outboundSpec.getGroupAddress(), is(new GroupAddress("1/2/1"))); String mappedValue = ValueEncoder.encode(outboundSpec.getValue(), outboundSpec.getDPT());