You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2016/07/28 21:27:17 UTC
[10/11] activemq-artemis git commit: Fix Netty topology factory class
test
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� <vi...@iki.fi>
Authored: Thu Jul 28 23:05:08 2016 +0300
Committer: Ville Skytt� <vi...@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());
}
}