mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 13:21:53 +01:00
Use Eclipse formatter 4.25 with Spotless (#3710)
Fixes #3515 Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
parent
2ee85a75f5
commit
3396ff7758
@ -138,8 +138,7 @@ public class AutomaticInboxProcessorTest {
|
||||
when(thingHandlerFactoryMock.createThing(any(ThingTypeUID.class), any(Configuration.class), any(ThingUID.class),
|
||||
nullable(ThingUID.class)))
|
||||
.then(invocation -> ThingBuilder
|
||||
.create((ThingTypeUID) invocation.getArguments()[0],
|
||||
(ThingUID) invocation.getArguments()[2])
|
||||
.create((ThingTypeUID) invocation.getArguments()[0], (ThingUID) invocation.getArguments()[2])
|
||||
.withConfiguration((Configuration) invocation.getArguments()[1]).build());
|
||||
|
||||
inbox = new PersistentInbox(new VolatileStorageService(), mock(DiscoveryServiceRegistry.class),
|
||||
|
@ -97,8 +97,8 @@ public class PersistentInboxTest {
|
||||
when(thingHandlerFactoryMock.createThing(eq(THING_TYPE_UID), any(Configuration.class), eq(THING_UID), any()))
|
||||
.then(invocation -> ThingBuilder.create(THING_TYPE_UID, "test")
|
||||
.withConfiguration((Configuration) invocation.getArguments()[1]).build());
|
||||
when(thingHandlerFactoryMock
|
||||
.createThing(eq(THING_TYPE_UID), any(Configuration.class), eq(THING_OTHER_UID), any()))
|
||||
when(thingHandlerFactoryMock.createThing(eq(THING_TYPE_UID), any(Configuration.class), eq(THING_OTHER_UID),
|
||||
any()))
|
||||
.then(invocation -> ThingBuilder.create(THING_TYPE_UID, THING_OTHER_ID)
|
||||
.withConfiguration((Configuration) invocation.getArguments()[1]).build());
|
||||
inbox = new PersistentInbox(storageServiceMock, mock(DiscoveryServiceRegistry.class), thingRegistryMock,
|
||||
|
@ -97,7 +97,8 @@ public class AutoUpdateManagerTest extends JavaTest {
|
||||
@Test
|
||||
public void testAutoUpdateVetoFromChannelType() {
|
||||
when(channelTypeRegistry.getChannelType(any(ChannelTypeUID.class)))
|
||||
.thenReturn(ChannelTypeBuilder.state(CHANNEL_TYPE_UID, "label", CoreItemFactory.SWITCH).withAutoUpdatePolicy(AutoUpdatePolicy.VETO).build());
|
||||
.thenReturn(ChannelTypeBuilder.state(CHANNEL_TYPE_UID, "label", CoreItemFactory.SWITCH)
|
||||
.withAutoUpdatePolicy(AutoUpdatePolicy.VETO).build());
|
||||
|
||||
autoUpdateManager.receiveCommand(ItemEventFactory.createCommandEvent(ITEM_NAME, OnOffType.ON), item);
|
||||
|
||||
|
5
pom.xml
5
pom.xml
@ -77,8 +77,9 @@
|
||||
<sat.version>0.15.0</sat.version>
|
||||
<slf4j.version>1.7.32</slf4j.version>
|
||||
<xtext.version>2.29.0</xtext.version>
|
||||
<spotless.version>2.35.0</spotless.version>
|
||||
<spotless.eclipse.version>4.26</spotless.eclipse.version>
|
||||
<spotless.version>2.37.0</spotless.version>
|
||||
<!-- Eclipse Java formatter version 4.26+ does not check test files -->
|
||||
<spotless.eclipse.version>4.25</spotless.eclipse.version>
|
||||
<spotless.eclipse.wtp.version>4.21.0</spotless.eclipse.wtp.version>
|
||||
</properties>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user