activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [10/11] activemq-artemis git commit: Fix Netty topology factory class test
Date Thu, 28 Jul 2016 21:27:17 GMT
Fix Netty topology factory class test


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

Branch: refs/heads/master
Commit: 0aa7dd1905c0fb1b9fa449849024aaaf58154611
Parents: 8562b8b
Author: Ville Skyttä <ville.skytta@iki.fi>
Authored: Thu Jul 28 23:05:08 2016 +0300
Committer: Ville Skyttä <ville.skytta@iki.fi>
Committed: Thu Jul 28 23:30:02 2016 +0300

----------------------------------------------------------------------
 .../cluster/topology/NonHATopologyTest.java           | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/0aa7dd19/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/NonHATopologyTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/NonHATopologyTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/NonHATopologyTest.java
index b6eed8a..c039b11 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/NonHATopologyTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/NonHATopologyTest.java
@@ -82,14 +82,12 @@ public class NonHATopologyTest extends ActiveMQTestBase {
 
          factory.close();
 
-         if (!isNetty) {
-            TopologyMemberImpl member = topology.getMembers().iterator().next();
-            if (isNetty) {
-               assertEquals(NettyConnectorFactory.class.getName(), member.getLive().getFactoryClassName());
-            }
-            else {
-               assertEquals(InVMConnectorFactory.class.getName(), member.getLive().getFactoryClassName());
-            }
+         TopologyMemberImpl member = topology.getMembers().iterator().next();
+         if (isNetty) {
+            assertEquals(NettyConnectorFactory.class.getName(), member.getLive().getFactoryClassName());
+         }
+         else {
+            assertEquals(InVMConnectorFactory.class.getName(), member.getLive().getFactoryClassName());
          }
 
       }


Mime
View raw message