[jboss-cvs] JBossAS SVN: r66992 - branches/JBPAPP_4_2/testsuite/src/main/org/jboss/test/jbossmessaging/clustertest.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Nov 12 17:34:32 EST 2007
Author: clebert.suconic at jboss.com
Date: 2007-11-12 17:34:32 -0500 (Mon, 12 Nov 2007)
New Revision: 66992
Modified:
branches/JBPAPP_4_2/testsuite/src/main/org/jboss/test/jbossmessaging/clustertest/ClusteredTestCase.java
Log:
http://jira.jboss.com/jira/browse/JBMESSAGING-726 - docs and removing non used code
Modified: branches/JBPAPP_4_2/testsuite/src/main/org/jboss/test/jbossmessaging/clustertest/ClusteredTestCase.java
===================================================================
--- branches/JBPAPP_4_2/testsuite/src/main/org/jboss/test/jbossmessaging/clustertest/ClusteredTestCase.java 2007-11-12 22:28:37 UTC (rev 66991)
+++ branches/JBPAPP_4_2/testsuite/src/main/org/jboss/test/jbossmessaging/clustertest/ClusteredTestCase.java 2007-11-12 22:34:32 UTC (rev 66992)
@@ -45,6 +45,9 @@
/**
*
+ * Each failover test would require a whole shutdown cycle, what means.. start, run test, kill, assert.. (for each test).
+ * Instead of doing that we run tests in parallel, using this little framework defined by ParallelTestContainer and assert all of them in a single server kill.
+ * Also: System.exit(-1); wasn't enough to perform a server crash, as it was causing a regular shutdown, so we are using some reflection to call java.lang.Shutdown#halt.
* @author <a href="clebert.suconic at jboss.com">Clebert Suconic</a>
*
*/
@@ -396,58 +399,6 @@
}
- class TestA extends ParallelTest
- {
- public TestA(String name)
- {
- super(name);
- // TODO Auto-generated constructor stub
- }
-
- public void setUp()
- {
- System.out.println("setup on A");
- }
-
- public void tearDown()
- {
- System.out.println("tearDown on A");
- }
-
- public void runTest()
- {
- System.out.println("A is being executed");
- fail("A");
- }
- }
-
- class TestB extends ParallelTest
- {
- public TestB(String name)
- {
- super(name);
- // TODO Auto-generated constructor stub
- }
-
- public void runTest()
- {
- System.out.println("TestB");
- }
- }
-
- class TestC extends ParallelTest
- {
- public TestC(String name)
- {
- super(name);
- }
-
- public void runTest()
- {
- fail("Hello");
- }
- }
-
public static Test suite() throws Exception
{
Test test = new ClusteredTestCase();
More information about the jboss-cvs-commits
mailing list