checkstyle MutableException
checkstyle EmptyBlock checkstyle fixRightCurly Script checkstyle EmptyStatement checkstyle RightCurly checkstyle TailingWhite checkstyle NeedBraces Fix the line separator in the `fixRightCurly.gradle`
This commit is contained in:
committed by
Artem Bilan
parent
c0b19e61b5
commit
842aded9a4
@@ -68,7 +68,7 @@ public class MBeanAttributeFilterTests {
|
||||
@Test
|
||||
public void testAttributeFilter() {
|
||||
while (channel.receive(0) != null) {
|
||||
;
|
||||
// drain
|
||||
}
|
||||
adapter.start();
|
||||
|
||||
@@ -94,7 +94,7 @@ public class MBeanAttributeFilterTests {
|
||||
@Test
|
||||
public void testAttributeFilterNot() {
|
||||
while (channel.receive(0) != null) {
|
||||
;
|
||||
// drain
|
||||
}
|
||||
adapterNot.start();
|
||||
|
||||
|
||||
@@ -57,11 +57,11 @@ public class NotificationPublishingMessageHandlerTests {
|
||||
// should not fail INT-1816
|
||||
context.registerSingleton("exporter", IntegrationMBeanExporter.class);
|
||||
context.registerSingleton("anotherExporter", MBeanExporter.class);
|
||||
|
||||
|
||||
RootBeanDefinition publisherDefinition = new RootBeanDefinition(NotificationPublishingMessageHandler.class);
|
||||
publisherDefinition.getConstructorArgumentValues().addGenericArgumentValue(this.publisherObjectName);
|
||||
publisherDefinition.getPropertyValues().add("defaultNotificationType", "test.type");
|
||||
context.registerBeanDefinition("testPublisher", publisherDefinition);
|
||||
context.registerBeanDefinition("testPublisher", publisherDefinition);
|
||||
context.refresh();
|
||||
MBeanExporter exporter = context.getBean(IntegrationMBeanExporter.class);
|
||||
exporter.getServer().addNotificationListener(publisherObjectName, this.listener, null, null);
|
||||
|
||||
@@ -54,7 +54,7 @@ public class MBeanAutoDetectTests {
|
||||
new ObjectName("test.MBeanAutoDetectFirst:type=ExpressionEvaluatingRouter,*"), null);
|
||||
assertEquals(1, names.size());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
@Ignore // Fails because the MBeanExporter is created before the router
|
||||
public void testRouterMBeanExistsWhenDefinedSecond() throws Exception {
|
||||
@@ -65,5 +65,5 @@ public class MBeanAutoDetectTests {
|
||||
new ObjectName("test.MBeanAutoDetectFirst:type=ExpressionEvaluatingRouter,*"), null);
|
||||
assertEquals(1, names.size());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -28,14 +28,14 @@ import org.springframework.util.Assert;
|
||||
*
|
||||
*/
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@ManagedResource
|
||||
public class SimpleDynamicRouter{
|
||||
private final Map<String, String> channelMappings = new HashMap<String, String>();
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param channelMappings
|
||||
*/
|
||||
public SimpleDynamicRouter(Map<String, String> channelMappings){
|
||||
@@ -45,7 +45,7 @@ public class SimpleDynamicRouter{
|
||||
}
|
||||
}
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param key
|
||||
* @param channelName
|
||||
*/
|
||||
@@ -54,20 +54,20 @@ public class SimpleDynamicRouter{
|
||||
this.channelMappings.put(key, channelName);
|
||||
}
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param key
|
||||
*/
|
||||
public void removeChannelMapping(String key){
|
||||
this.channelMappings.remove(key);
|
||||
}
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
public Map<String, String> getChannelMappings(){
|
||||
return channelMappings;
|
||||
}
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param key
|
||||
*/
|
||||
public String route(Object key){
|
||||
|
||||
@@ -91,7 +91,8 @@ public class HandlerMonitoringIntegrationTests {
|
||||
int count = messageHandlersMonitor.getHandlerDuration(monitor).getCount();
|
||||
assertTrue("No statistics for input channel", count > 0);
|
||||
|
||||
} finally {
|
||||
}
|
||||
finally {
|
||||
context.close();
|
||||
}
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ public class MessageMetricsAdviceTests {
|
||||
public void handleMessage(Message<?> message) throws MessagingException {
|
||||
invoked = true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private static class DummyInterceptor implements MethodInterceptor {
|
||||
@@ -129,7 +129,7 @@ public class MessageMetricsAdviceTests {
|
||||
public String toString() {
|
||||
return super.toString() + "{" + "invoked=" + invoked + '}';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -65,7 +65,8 @@ public class MessageSourceMonitoringIntegrationTests {
|
||||
int count = exporter.getSourceMessageCount(monitor);
|
||||
assertTrue("No statistics for input channel", count > 0);
|
||||
|
||||
} finally {
|
||||
}
|
||||
finally {
|
||||
context.close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user