[knx] Fix warnings in test (#16434)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich 2024-02-21 19:24:28 +01:00 committed by GitHub
parent 4158bd1130
commit dc1211b267
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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