mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[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:
parent
654b6dfb92
commit
6e8f57b3d3
@ -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