Skip to content

Commit 5a2ff8b

Browse files
committed
fixing code style
1 parent 5688abc commit 5a2ff8b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

spring-integration-mqtt/src/test/java/org/springframework/integration/mqtt/ClientManagerBackToBackTests.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import java.lang.reflect.Constructor;
2020
import java.nio.charset.StandardCharsets;
21-
import java.util.Arrays;
2221
import java.util.concurrent.CountDownLatch;
2322
import java.util.concurrent.TimeUnit;
2423

@@ -83,7 +82,7 @@ void testV3ClientManagerStarted() throws Exception {
8382
}
8483

8584
@Test
86-
void testV3ClientManagerRuntime() throws Exception{
85+
void testV3ClientManagerRuntime() throws Exception {
8786
testSubscribeAndPublishRuntime(Mqttv3ConfigRuntime.class, Mqttv3ConfigRuntime.TOPIC_NAME,
8887
Mqttv3ConfigRuntime.subscribedLatch, Mqttv3ConfigRuntime.adapter);
8988
}
@@ -101,7 +100,7 @@ void testV5ClientManagerStarted() throws Exception {
101100
}
102101

103102
@Test
104-
void testV5ClientManagerRuntime() throws Exception{
103+
void testV5ClientManagerRuntime() throws Exception {
105104
testSubscribeAndPublishRuntime(Mqttv5ConfigRuntime.class, Mqttv5ConfigRuntime.TOPIC_NAME,
106105
Mqttv5ConfigRuntime.subscribedLatch, Mqttv5ConfigRuntime.adapter);
107106
}
@@ -144,7 +143,7 @@ private void testSubscribeAndPublishRuntime(Class<?> configClass, String topicNa
144143
Class<?>[] parameterTypes = {ClientManager.class, String[].class};
145144
Constructor<?> declaredConstructor = adapter.getConstructor(parameterTypes);
146145
flowContext.registration(IntegrationFlow
147-
.from((MessageProducerSupport) declaredConstructor.newInstance(clientManager,new String[] {topicName}))
146+
.from((MessageProducerSupport) declaredConstructor.newInstance(clientManager, new String[] {topicName}))
148147
.channel(output)
149148
.get()).register();
150149
String testPayload = "foo";
@@ -277,6 +276,7 @@ public IntegrationFlow mqttInFlow(Mqttv3ClientManager mqttv3ClientManager) {
277276
}
278277

279278
}
279+
280280
@Configuration
281281
@EnableIntegration
282282
public static class Mqttv3ConfigRuntime {
@@ -297,7 +297,7 @@ public Mqttv3ClientManager mqttv3ClientManager() {
297297
MqttConnectOptions connectionOptions = new MqttConnectOptions();
298298
connectionOptions.setServerURIs(new String[] {MosquittoContainerTest.mqttUrl()});
299299
connectionOptions.setAutomaticReconnect(true);
300-
return new Mqttv3ClientManager(connectionOptions, "client-manager-client-id-v3");
300+
return new Mqttv3ClientManager(connectionOptions, "client-manager-client-id-v3");
301301
}
302302

303303
@Bean
@@ -411,6 +411,7 @@ public IntegrationFlow mqttInFlow(Mqttv5ClientManager mqttv5ClientManager) {
411411
}
412412

413413
}
414+
414415
@Configuration
415416
@EnableIntegration
416417
public static class Mqttv5ConfigRuntime {

0 commit comments

Comments
 (0)