From 3b28f09c7c97b6fe30d2d290e7d70ffc06e5c6f0 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Thu, 9 Oct 2008 20:56:08 +0000 Subject: [PATCH] Added receive call to propagation test to avoid collision with the expected results of other methods. --- .../PollerAnnotationChannelAdapterTransactionalTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.springframework.integration/src/test/java/org/springframework/integration/config/PollerAnnotationChannelAdapterTransactionalTests.java b/org.springframework.integration/src/test/java/org/springframework/integration/config/PollerAnnotationChannelAdapterTransactionalTests.java index 6b07bc16a2..3cbeace163 100644 --- a/org.springframework.integration/src/test/java/org/springframework/integration/config/PollerAnnotationChannelAdapterTransactionalTests.java +++ b/org.springframework.integration/src/test/java/org/springframework/integration/config/PollerAnnotationChannelAdapterTransactionalTests.java @@ -78,8 +78,11 @@ public class PollerAnnotationChannelAdapterTransactionalTests { @Test public void verifyPropagationSetting() throws InterruptedException { + adapter.setShouldFail(false); adapter.setNextValue("propagation-test"); transactionManager.waitForCompletion(1000); + Message reply = output.receive(1000); + assertEquals("propagation-test", reply.getPayload()); assertEquals(TransactionDefinition.PROPAGATION_REQUIRES_NEW, transactionManager.getLastDefinition().getPropagationBehavior()); }