[knx] Fix warnings in test (#16434)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Holger Friedrich 2024-02-21 19:24:28 +01:00 committed by Ciprian Pascu
parent 654b6dfb92
commit 6e8f57b3d3

View File

@ -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());