Skip to content

Commit dc1211b

Browse files
[knx] Fix warnings in test (openhab#16434)
Signed-off-by: Holger Friedrich <[email protected]>
1 parent 4158bd1 commit dc1211b

File tree

1 file changed

+3
-2
lines changed
  • bundles/org.openhab.binding.knx/src/test/java/org/openhab/binding/knx/internal/channel

1 file changed

+3
-2
lines changed

bundles/org.openhab.binding.knx/src/test/java/org/openhab/binding/knx/internal/channel/KNXChannelTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void test5001PercentType() throws KNXFormatException {
197197
Command command = new PercentType("90");
198198
@Nullable
199199
OutboundSpec outboundSpec = knxChannel.getCommandSpec(command);
200-
assertThat(outboundSpec, is(notNullValue()));
200+
assertNotNull(outboundSpec);
201201
assertThat(outboundSpec.getGroupAddress(), is(new GroupAddress("1/2/2")));
202202

203203
String mappedValue = ValueEncoder.encode(outboundSpec.getValue(), outboundSpec.getDPT());
@@ -217,8 +217,9 @@ void test1001ToDimmerChannel() throws KNXFormatException {
217217
assertThat(knxChannel, instanceOf(TypeDimmer.class));
218218

219219
Command command = OnOffType.ON;
220+
@Nullable
220221
OutboundSpec outboundSpec = knxChannel.getCommandSpec(command);
221-
assertThat(outboundSpec, is(notNullValue()));
222+
assertNotNull(outboundSpec);
222223
assertThat(outboundSpec.getGroupAddress(), is(new GroupAddress("1/2/1")));
223224

224225
String mappedValue = ValueEncoder.encode(outboundSpec.getValue(), outboundSpec.getDPT());

0 commit comments

Comments
 (0)