From 80d029a93866ba8d8d410f69cd68356a95dfcbf1 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Fri, 28 Dec 2007 03:25:02 +0000 Subject: [PATCH] Added not-null assertion for the message reference. --- .../integration/channel/PointToPointChannelTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-integration-core/src/test/java/org/springframework/integration/channel/PointToPointChannelTests.java b/spring-integration-core/src/test/java/org/springframework/integration/channel/PointToPointChannelTests.java index 3be085fbcf..0edd9c0428 100644 --- a/spring-integration-core/src/test/java/org/springframework/integration/channel/PointToPointChannelTests.java +++ b/spring-integration-core/src/test/java/org/springframework/integration/channel/PointToPointChannelTests.java @@ -18,6 +18,7 @@ package org.springframework.integration.channel; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; @@ -222,6 +223,7 @@ public class PointToPointChannelTests { }); sender.start(); latch.await(); + assertNotNull("message reference should not be null", messageRef.get()); String payload = (String) messageRef.get().getPayload(); assertEquals("expected 'test-3', but message was '" + payload, "test-3", payload); }