From 80baca84c3e215f76f6cdaa673844e40cbdf4ab6 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Mon, 16 Dec 2013 14:08:31 -0500 Subject: [PATCH] INT-3187 Uncomment JMX Test Case Since 3.2.3, the operation invoking message handler can take a map containing arguments named for their equivalent parameters. This test was commented out because the 3.x stream supports older versions of Spring. JIRA: https://jira.springsource.org/browse/INT-3187 --- .../OperationInvokingOutboundGatewayTests.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spring-integration-jmx/src/test/java/org/springframework/integration/jmx/config/OperationInvokingOutboundGatewayTests.java b/spring-integration-jmx/src/test/java/org/springframework/integration/jmx/config/OperationInvokingOutboundGatewayTests.java index f0d0578a72..a0baee6c37 100644 --- a/spring-integration-jmx/src/test/java/org/springframework/integration/jmx/config/OperationInvokingOutboundGatewayTests.java +++ b/spring-integration-jmx/src/test/java/org/springframework/integration/jmx/config/OperationInvokingOutboundGatewayTests.java @@ -126,13 +126,13 @@ public class OperationInvokingOutboundGatewayTests { assertThat(e, Matchers.instanceOf(MessagingException.class)); assertThat(e.getMessage(), Matchers.containsString("failed to find JMX operation")); } - // TODO: Uncomment when Spring Framework minimum is 3.2.3 -// argMap = new HashMap(); -// argMap.put("bool", true); -// argMap.put("time", 0L); -// argMap.put("foo", 42); -// primitiveChannel.send(new GenericMessage>(argMap)); -// assertEquals(4, testBean.messages.size()); + // Args are named starting with Spring 3.2.3 + argMap = new HashMap(); + argMap.put("bool", true); + argMap.put("time", 0L); + argMap.put("foo", 42); + primitiveChannel.send(new GenericMessage>(argMap)); + assertEquals(4, testBean.messages.size()); } @Test