mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 23:22:02 +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");
|
Command command = new PercentType("90");
|
||||||
@Nullable
|
@Nullable
|
||||||
OutboundSpec outboundSpec = knxChannel.getCommandSpec(command);
|
OutboundSpec outboundSpec = knxChannel.getCommandSpec(command);
|
||||||
assertThat(outboundSpec, is(notNullValue()));
|
assertNotNull(outboundSpec);
|
||||||
assertThat(outboundSpec.getGroupAddress(), is(new GroupAddress("1/2/2")));
|
assertThat(outboundSpec.getGroupAddress(), is(new GroupAddress("1/2/2")));
|
||||||
|
|
||||||
String mappedValue = ValueEncoder.encode(outboundSpec.getValue(), outboundSpec.getDPT());
|
String mappedValue = ValueEncoder.encode(outboundSpec.getValue(), outboundSpec.getDPT());
|
||||||
@ -217,8 +217,9 @@ class KNXChannelTest {
|
|||||||
assertThat(knxChannel, instanceOf(TypeDimmer.class));
|
assertThat(knxChannel, instanceOf(TypeDimmer.class));
|
||||||
|
|
||||||
Command command = OnOffType.ON;
|
Command command = OnOffType.ON;
|
||||||
|
@Nullable
|
||||||
OutboundSpec outboundSpec = knxChannel.getCommandSpec(command);
|
OutboundSpec outboundSpec = knxChannel.getCommandSpec(command);
|
||||||
assertThat(outboundSpec, is(notNullValue()));
|
assertNotNull(outboundSpec);
|
||||||
assertThat(outboundSpec.getGroupAddress(), is(new GroupAddress("1/2/1")));
|
assertThat(outboundSpec.getGroupAddress(), is(new GroupAddress("1/2/1")));
|
||||||
|
|
||||||
String mappedValue = ValueEncoder.encode(outboundSpec.getValue(), outboundSpec.getDPT());
|
String mappedValue = ValueEncoder.encode(outboundSpec.getValue(), outboundSpec.getDPT());
|
||||||
|
Loading…
Reference in New Issue
Block a user