activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbert...@apache.org
Subject [20/48] activemq-artemis git commit: Fix JMSBridgeTest
Date Wed, 23 Nov 2016 17:43:21 GMT
Fix JMSBridgeTest


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/493e9990
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/493e9990
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/493e9990

Branch: refs/heads/ARTEMIS-780
Commit: 493e99900962e9e1cf21cd8fe5a777b18b2605c4
Parents: 4ccfc73
Author: jbertram <jbertram@apache.com>
Authored: Tue Nov 15 14:24:38 2016 -0600
Committer: jbertram <jbertram@apache.com>
Committed: Wed Nov 23 09:04:34 2016 -0600

----------------------------------------------------------------------
 .../artemis/tests/extras/jms/bridge/BridgeTestBase.java         | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/493e9990/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/BridgeTestBase.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/BridgeTestBase.java
b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/BridgeTestBase.java
index 5e0345f..c47d026 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/BridgeTestBase.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/BridgeTestBase.java
@@ -506,8 +506,9 @@ public abstract class BridgeTestBase extends ActiveMQTestBase {
          managementService = server1.getManagementService();
       }
       AddressControl topicControl = (AddressControl) managementService.getResource(ResourceNames.ADDRESS
+ topic.getTopicName());
-      Assert.assertEquals(0, topicControl.getQueueNames().length);
-
+      if (topicControl != null) {
+         Assert.assertEquals(0, topicControl.getQueueNames().length);
+      }
    }
 
    protected void removeAllMessages(final String queueName, final int index) throws Exception
{


Mime
View raw message