[jboss-cvs] JBossAS SVN: r114754 - branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jca/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Mar 10 00:50:08 EDT 2014


Author: pjelinek
Date: 2014-03-10 00:50:07 -0400 (Mon, 10 Mar 2014)
New Revision: 114754

Modified:
   branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jca/test/HAConnectionFactoryUnitTestCase.java
Log:
[JBPAPP-11021] Revert the logic to fail the test when -Djbosstest.ignoreTestFailoverLocalMCF=true  argument is passed.  

Modified: branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jca/test/HAConnectionFactoryUnitTestCase.java
===================================================================
--- branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jca/test/HAConnectionFactoryUnitTestCase.java	2014-03-07 10:21:06 UTC (rev 114753)
+++ branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jca/test/HAConnectionFactoryUnitTestCase.java	2014-03-10 04:50:07 UTC (rev 114754)
@@ -48,7 +48,7 @@
       super(name);
    }
 
-   private static final Boolean runTestFailoverLocalMCF = Boolean.valueOf(System.getProperty("jbosstest.runTestFailoverLocalMCF"));
+   private static final Boolean ignoreTestFailoverLocalMCF = Boolean.valueOf(System.getProperty("jbosstest.ignoreTestFailoverLocalMCF"));
    
    public static Test suite() throws Exception
    {
@@ -56,7 +56,7 @@
       t = getDeploySetup(HAConnectionFactoryUnitTestCase.class, "jcatest.jar");
 	  //t = getDeploySetup(t, "jboss-ha-local-jdbc.rar");
       //t = getDeploySetup(t, "jboss-ha-xa-jdbc.rar");
-      if(runTestFailoverLocalMCF) {
+      if(!ignoreTestFailoverLocalMCF) {
     	  t = getDeploySetup(t, "test-ha-ds.xml");
       }
       t = getDeploySetup(t, "test-ha-xa-ds.xml");
@@ -74,11 +74,11 @@
 
    public void testFailoverLocalMCF() throws Exception
    {
-	  if(runTestFailoverLocalMCF) {
+	  if(!ignoreTestFailoverLocalMCF) {
 		  HAConnectionSessionHome home = (HAConnectionSessionHome)getInitialContext().lookup("HAConnectionSession");
 	      home.create().testHaLocalConnection(); 
 	  }else {
-		  Assert.fail("Test temporary failed to avoid whole testsuite be stuck. You can run the test with -Djbosstest.runTestFailoverLocalMCF=true See https://issues.jboss.org/browse/JBPAPP-11021");
+		  Assert.fail("Test temporary failed to avoid whole testsuite be stuck. You can run the test without -Djbosstest.ignoreTestFailoverLocalMCF=true See https://issues.jboss.org/browse/JBPAPP-11021");
 	  }
       
    }



More information about the jboss-cvs-commits mailing list