Fix for ALF-13264: "Cluster Verification Support"

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@34605 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Steven Glover
2012-03-19 17:01:33 +00:00
parent 5ec8d40e1c
commit 5070a0bc6e
16 changed files with 2074 additions and 913 deletions

View File

@@ -62,7 +62,7 @@ public class AlfrescoJGroupsChannelFactoryTest extends TestCase
public void testNoCluster() throws Exception
{
Channel channel = AlfrescoJGroupsChannelFactory.getChannel(appRegion);
Channel channel = AlfrescoJGroupsChannelFactory.getChannel(appRegion, false);
stressChannel(channel);
}
@@ -70,7 +70,7 @@ public class AlfrescoJGroupsChannelFactoryTest extends TestCase
{
AlfrescoJGroupsChannelFactory.changeClusterNamePrefix("blah");
AlfrescoJGroupsChannelFactory.rebuildChannels();
Channel channel = AlfrescoJGroupsChannelFactory.getChannel(appRegion);
Channel channel = AlfrescoJGroupsChannelFactory.getChannel(appRegion, false);
stressChannel(channel);
}
@@ -78,11 +78,11 @@ public class AlfrescoJGroupsChannelFactoryTest extends TestCase
{
AlfrescoJGroupsChannelFactory.changeClusterNamePrefix("ONE");
AlfrescoJGroupsChannelFactory.rebuildChannels();
Channel channel1 = AlfrescoJGroupsChannelFactory.getChannel(appRegion);
Channel channel1 = AlfrescoJGroupsChannelFactory.getChannel(appRegion, false);
stressChannel(channel1);
AlfrescoJGroupsChannelFactory.changeClusterNamePrefix("TWO");
AlfrescoJGroupsChannelFactory.rebuildChannels();
Channel channel2 = AlfrescoJGroupsChannelFactory.getChannel(appRegion);
Channel channel2 = AlfrescoJGroupsChannelFactory.getChannel(appRegion, false);
stressChannel(channel1);
assertTrue("Channel reference must be the same", channel1 == channel2);
}