From 84481c892a2b21ae9f271192f37f4d9c2fdc3294 Mon Sep 17 00:00:00 2001 From: Iwein Fuld Date: Sun, 7 Jun 2009 10:47:29 +0000 Subject: [PATCH] Removed order requirement from DefaultMessageAggregatorIntegrationTests (could cause build failure in high load scenarios) --- .../DefaultMessageAggregatorIntegrationTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org.springframework.integration/src/test/java/org/springframework/integration/aggregator/integration/DefaultMessageAggregatorIntegrationTests.java b/org.springframework.integration/src/test/java/org/springframework/integration/aggregator/integration/DefaultMessageAggregatorIntegrationTests.java index 150818be81..be11bd781a 100644 --- a/org.springframework.integration/src/test/java/org/springframework/integration/aggregator/integration/DefaultMessageAggregatorIntegrationTests.java +++ b/org.springframework.integration/src/test/java/org/springframework/integration/aggregator/integration/DefaultMessageAggregatorIntegrationTests.java @@ -17,6 +17,7 @@ package org.springframework.integration.aggregator.integration; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; +import static org.junit.Assert.assertTrue; import java.util.Arrays; import java.util.HashMap; @@ -70,7 +71,8 @@ public class DefaultMessageAggregatorIntegrationTests { } Object payload = output.receive().getPayload(); assertThat(payload, is(List.class)); - assertThat((List) payload, is(Arrays.asList(0, 1, 2, 3, 4))); + assertTrue(payload + " doesn't contain all of {0,1,2,3,4}", ((List) payload).containsAll(Arrays.asList(0, 1, 2, + 3, 4))); } Map stubHeaders(int sequenceNumber, int sequenceSize, int correllationId) { @@ -80,5 +82,4 @@ public class DefaultMessageAggregatorIntegrationTests { headers.put(MessageHeaders.CORRELATION_ID, correllationId); return headers; } - }