activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject [3/3] activemq git commit: add some more diagnostic logging to test
Date Fri, 09 Jan 2015 13:32:36 GMT
add some more diagnostic logging to test


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

Branch: refs/heads/trunk
Commit: 383c27e245ccd1ea9b8fbf59de8aa7a5d0f0b8b4
Parents: 7948d69
Author: gtully <gary.tully@gmail.com>
Authored: Fri Jan 9 11:51:16 2015 +0000
Committer: gtully <gary.tully@gmail.com>
Committed: Fri Jan 9 13:30:59 2015 +0000

----------------------------------------------------------------------
 .../org/apache/activemq/network/NetworkBrokerDetachTest.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/383c27e2/activemq-unit-tests/src/test/java/org/apache/activemq/network/NetworkBrokerDetachTest.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/network/NetworkBrokerDetachTest.java
b/activemq-unit-tests/src/test/java/org/apache/activemq/network/NetworkBrokerDetachTest.java
index 8f57e11..ceef43c 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/network/NetworkBrokerDetachTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/network/NetworkBrokerDetachTest.java
@@ -19,6 +19,7 @@ package org.apache.activemq.network;
 import static org.junit.Assert.assertTrue;
 
 import java.io.File;
+import java.util.Arrays;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicInteger;
 
@@ -267,6 +268,7 @@ public class NetworkBrokerDetachTest {
 
                         if (view.getName().equals(destination.getPhysicalName())) {
                             LOG.info("Consumers for " + destination.getPhysicalName() + "
on " + broker + " : " + view.getConsumerCount());
+                            LOG.info("Subs: " + Arrays.asList(view.getSubscriptions()));
                             if (expectedCount == view.getConsumerCount()) {
                                 result = true;
                             }
@@ -290,7 +292,7 @@ public class NetworkBrokerDetachTest {
                 if (view != null) {
                     ObjectName[] subs = broker.getAdminView().getInactiveDurableTopicSubscribers();
                     if (subs != null) {
-                        LOG.info("inactive durable subs on " + broker + " : " + subs);
+                        LOG.info("inactive durable subs on " + broker + " : " + Arrays.asList(subs));
                         if (expectedCount == subs.length) {
                             result = true;
                         }


Mime
View raw message