mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[knx] Fix warnings in test (#16434)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
parent
4158bd1130
commit
dc1211b267
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user