mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
Fix build after DecimalType changes (#12374)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
parent
da0234f69c
commit
505258c234
@ -921,8 +921,10 @@ public class UpnpRendererHandlerTest extends UpnpHandlerTest {
|
||||
is(cleared ? UnDefType.UNDEF : StringType.valueOf(upnpEntryQueue.get(mediaId).getGenre())));
|
||||
verify(callback, atLeastOnce()).stateUpdated(eq(thing.getChannel(TRACK_NUMBER).getUID()),
|
||||
stateCaptor.capture());
|
||||
assertThat(stateCaptor.getValue(),
|
||||
is(cleared ? UnDefType.UNDEF : new DecimalType(upnpEntryQueue.get(mediaId).getOriginalTrackNumber())));
|
||||
is(new DecimalType(upnpEntryQueue.get(mediaId).getOriginalTrackNumber()));
|
||||
Integer originalTrackNumber = upnpEntryQueue.get(mediaId).getOriginalTrackNumber();
|
||||
if (originalTrackNumber != null) {
|
||||
assertThat(stateCaptor.getValue(), is(cleared ? UnDefType.UNDEF : new DecimalType(originalTrackNumber)));
|
||||
is(new DecimalType(originalTrackNumber));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user