[Jboss-cvs] JBossAS SVN: r56861 - branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/test
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Sep 14 15:23:08 EDT 2006
Author: bstansberry at jboss.com
Date: 2006-09-14 15:23:07 -0400 (Thu, 14 Sep 2006)
New Revision: 56861
Modified:
branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/test/BadStateTransferTestCase.java
Log:
[JBAS-3656] Disconnect HAPartition channel upon failure in startService()
Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/test/BadStateTransferTestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/test/BadStateTransferTestCase.java 2006-09-14 18:24:14 UTC (rev 56860)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/test/BadStateTransferTestCase.java 2006-09-14 19:23:07 UTC (rev 56861)
@@ -1,5 +1,27 @@
-package org.jboss.test.cluster.partition.test;
+/*
+* JBoss, a division of Red Hat
+* Copyright 2005, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/package org.jboss.test.cluster.partition.test;
+import java.util.Vector;
+
import javax.management.ObjectName;
import junit.framework.Test;
@@ -51,6 +73,10 @@
}
assertTrue("Correct type of Exception caught", parent instanceof IllegalStateException);
+
+ // Confirm the bad partition is removed from the current view
+ Vector view = (Vector) adaptors[0].getAttribute(partition, "CurrentView");
+ assertEquals("View size after failure is correct", 1, view.size());
}
public void testBadStateIntegration() throws Exception
@@ -72,6 +98,10 @@
}
assertTrue("Correct type of Exception caught", parent instanceof BadHAPartitionStateException);
+
+ // Confirm the bad partition is removed from the current view
+ Vector view = (Vector) adaptors[0].getAttribute(partition, "CurrentView");
+ assertEquals("View size after failure is correct", 1, view.size());
}
/**
More information about the jboss-cvs-commits
mailing list