Added not-null assertion for the message reference.

This commit is contained in:
Mark Fisher
2007-12-28 03:25:02 +00:00
parent f7fb1c0e6d
commit 80d029a938

View File

@@ -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);
}