Fix build (AbstractStorageBasedTypeProviderTest) (#3596)

Fix #3594

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2023-05-08 11:02:36 +02:00 committed by GitHub
parent 8e1a2cfd0a
commit 6af9870c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ public class AbstractStorageBasedTypeProviderTest {
ChannelDefinition channelDefinition = new ChannelDefinitionBuilder("channelName",
new ChannelTypeUID("system:color")).withLabel("label").withDescription("description")
.withProperties(Map.of("key", "value")).withAutoUpdatePolicy(AutoUpdatePolicy.VETO).build();
.withProperties(Map.of("key", "value")).withAutoUpdatePolicy(AutoUpdatePolicy.VETO).build();
ChannelGroupType expected = ChannelGroupTypeBuilder.instance(groupTypeUID, "testLabel")
.withDescription("testDescription").withCategory("testCategory")
.withChannelDefinitions(List.of(channelDefinition)).build();
@ -114,7 +114,7 @@ public class AbstractStorageBasedTypeProviderTest {
ChannelDefinition channelDefinition = new ChannelDefinitionBuilder("channelName",
new ChannelTypeUID("system:color")).withLabel("label").withDescription("description")
.withProperties(Map.of("key", "value")).withAutoUpdatePolicy(AutoUpdatePolicy.VETO).build();
.withProperties(Map.of("key", "value")).withAutoUpdatePolicy(AutoUpdatePolicy.VETO).build();
ChannelGroupDefinition channelGroupDefinition = new ChannelGroupDefinition("groupName",
new ChannelGroupTypeUID("testBinding:channelGroupType"), "label", "description");
ThingType expected = ThingTypeBuilder.instance(thingTypeUID, "testLabel").withDescription("description")