Fix build after core-changes (#14431)

Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
J-N-K
2023-02-18 15:24:58 +01:00
committed by GitHub
parent ce41708622
commit cb07f3e2f0
5 changed files with 34 additions and 20 deletions

View File

@@ -161,7 +161,7 @@ public class NtpOSGiTest extends JavaOSGiTest {
channelTypeUID = new ChannelTypeUID(NtpBindingConstants.BINDING_ID + ":channelType");
channelTypeProvider = mock(ChannelTypeProvider.class);
when(channelTypeProvider.getChannelType(any(ChannelTypeUID.class), any(Locale.class)))
when(channelTypeProvider.getChannelType(any(ChannelTypeUID.class), nullable(Locale.class)))
.thenReturn(ChannelTypeBuilder.state(channelTypeUID, "label", CoreItemFactory.SWITCH).build());
registerService(channelTypeProvider);
}