summaryrefslogtreecommitdiff
path: root/java/systests/src
diff options
context:
space:
mode:
Diffstat (limited to 'java/systests/src')
-rw-r--r--java/systests/src/main/java/org/apache/qpid/test/unit/message/JMSPropertiesTest.java15
1 files changed, 2 insertions, 13 deletions
diff --git a/java/systests/src/main/java/org/apache/qpid/test/unit/message/JMSPropertiesTest.java b/java/systests/src/main/java/org/apache/qpid/test/unit/message/JMSPropertiesTest.java
index 15d1ff63cf..58bf7e85cf 100644
--- a/java/systests/src/main/java/org/apache/qpid/test/unit/message/JMSPropertiesTest.java
+++ b/java/systests/src/main/java/org/apache/qpid/test/unit/message/JMSPropertiesTest.java
@@ -99,19 +99,8 @@ public class JMSPropertiesTest extends QpidBrokerTestCase
}
catch (MessageFormatException mfe)
{
- // Check the cause
- Throwable cause = mfe.getCause();
- assertNotNull(cause);
- assertEquals("Incorrect cause ", AMQPInvalidClassException.class, cause.getClass());
- assertEquals("Null values are not allowed to be set",
- "Only Primitives objects allowed Object is:null", cause.getMessage());
-
- // Also check the linked exception
- cause = mfe.getLinkedException();
- assertNotNull(cause);
- assertEquals("Incorrect cause ", AMQPInvalidClassException.class, cause.getClass());
- assertEquals("Null values are not allowed to be set",
- "Only Primitives objects allowed Object is:null", cause.getMessage());
+ // Check the error message
+ assertTrue("Incorrect error message: " + mfe.getMessage(), mfe.getMessage().contains("Object is null"));
}
// send it