From fd67eefad63ec1676734fefa1037c1d12bdb35c4 Mon Sep 17 00:00:00 2001 From: Hiram Chirino Date: Tue, 10 Sep 2013 12:53:46 -0400 Subject: [PATCH] Improve test for AMQ-4717: verify that propertyExists also works. --- .../apache/activemq/security/SimpleSecurityBrokerSystemTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java index af370c878f..09d96b7ce5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java @@ -107,6 +107,7 @@ public class SimpleSecurityBrokerSystemTest extends SecurityTestSupport { // And also via JMS. MessageConsumer consumer = session.createConsumer(destination); Message m = consumer.receive(1000); + assertTrue(m.propertyExists("JMSXUserID")); assertEquals("system", m.getStringProperty("JMSXUserID")); }