From acf7424dbcb705fa60892421f592435405bc9521 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Tue, 1 Nov 2016 09:24:47 -0400 Subject: [PATCH] Fix `AggregatorParserTests` for latest SF changes https://build.spring.io/browse/INT-MJATS41-802/ --- .../config/AggregatorParserTests.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spring-integration-core/src/test/java/org/springframework/integration/config/AggregatorParserTests.java b/spring-integration-core/src/test/java/org/springframework/integration/config/AggregatorParserTests.java index cbddcb9719..93cd289b58 100644 --- a/spring-integration-core/src/test/java/org/springframework/integration/config/AggregatorParserTests.java +++ b/spring-integration-core/src/test/java/org/springframework/integration/config/AggregatorParserTests.java @@ -244,7 +244,7 @@ public class AggregatorParserTests { fail("Expected exception"); } catch (BeanCreationException e) { - assertThat(e.getMessage(), containsString("No bean named 'testReleaseStrategy' is defined")); + assertThat(e.getMessage(), containsString("No bean named 'testReleaseStrategy'")); } } @@ -261,13 +261,13 @@ public class AggregatorParserTests { assertNull(handlerMethods); Object handlerMethod = releaseStrategyAccessor.getPropertyValue("handlerMethod"); assertTrue(handlerMethod.toString().contains("checkCompleteness")); - input.send(createMessage(1L, "correllationId", 4, 0, null)); - input.send(createMessage(2L, "correllationId", 4, 1, null)); - input.send(createMessage(3L, "correllationId", 4, 2, null)); + input.send(createMessage(1L, "correlationId", 4, 0, null)); + input.send(createMessage(2L, "correlationId", 4, 1, null)); + input.send(createMessage(3L, "correlationId", 4, 2, null)); PollableChannel outputChannel = (PollableChannel) context.getBean("outputChannel"); Message reply = outputChannel.receive(0); Assert.assertNull(reply); - input.send(createMessage(5L, "correllationId", 4, 3, null)); + input.send(createMessage(5L, "correlationId", 4, 3, null)); reply = outputChannel.receive(0); Assert.assertNotNull(reply); assertEquals(11L, reply.getPayload()); @@ -286,13 +286,13 @@ public class AggregatorParserTests { assertNull(handlerMethods); Object handlerMethod = releaseStrategyAccessor.getPropertyValue("handlerMethod"); assertTrue(handlerMethod.toString().contains("checkCompleteness")); - input.send(createMessage(1L, "correllationId", 4, 0, null)); - input.send(createMessage(2L, "correllationId", 4, 1, null)); - input.send(createMessage(3L, "correllationId", 4, 2, null)); + input.send(createMessage(1L, "correlationId", 4, 0, null)); + input.send(createMessage(2L, "correlationId", 4, 1, null)); + input.send(createMessage(3L, "correlationId", 4, 2, null)); PollableChannel outputChannel = (PollableChannel) context.getBean("outputChannel"); Message reply = outputChannel.receive(0); Assert.assertNull(reply); - input.send(createMessage(5L, "correllationId", 4, 3, null)); + input.send(createMessage(5L, "correlationId", 4, 3, null)); reply = outputChannel.receive(0); Assert.assertNotNull(reply); assertEquals(11L, reply.getPayload());