Fix Netty topology factory class test

This commit is contained in:
Ville Skyttä 2016-07-28 23:05:08 +03:00
parent 8562b8b448
commit 0aa7dd1905
1 changed files with 6 additions and 8 deletions

View File

@ -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());
}
}