[CXF-8332]JDK15 support
@@ -45,6 +45,7 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
public class MessageListenerTest {
@@ -91,7 +92,8 @@ public class MessageListenerTest {
JMSException ex = exListener.exception;
assertNotNull(ex);
// Closing the pooled connection will result in a NPE when using it
- assertEquals("Wrapped exception. null", ex.getMessage());
+ assertTrue(ex.getMessage().contains("Wrapped exception.")
+ && ex.getMessage().contains("null"));
}
@Test
