[jbpm-commits] JBoss JBPM SVN: r4145 - jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/test/java/org/jbpm/perf.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Mar 5 01:02:50 EST 2009


Author: alex.guizar at jboss.com
Date: 2009-03-05 01:02:49 -0500 (Thu, 05 Mar 2009)
New Revision: 4145

Modified:
   jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/test/java/org/jbpm/perf/SimplePerformanceTest.java
Log:
JBPM-2043: exclude performance test from HSQL test suite, concurrent job processing is unreliable due to lack of isolation

Modified: jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/test/java/org/jbpm/perf/SimplePerformanceTest.java
===================================================================
--- jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/test/java/org/jbpm/perf/SimplePerformanceTest.java	2009-03-04 22:21:58 UTC (rev 4144)
+++ jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/test/java/org/jbpm/perf/SimplePerformanceTest.java	2009-03-05 06:02:49 UTC (rev 4145)
@@ -30,9 +30,9 @@
 import org.jbpm.graph.exe.ProcessInstance;
 
 /**
- * This tests creates a number of process instances. Every instance has a call to an ActionHandler.
- * https://jira.jboss.org/jira/browse/JBPM-2043
+ * This test creates a number of process instances. Every instance has a call to an ActionHandler.
  * 
+ * @see <a href="https://jira.jboss.org/jira/browse/JBPM-2043">JBPM-2043</a>
  * @author mvecera at redhat.com
  * @author pmacik at redhat.com
  * @author thomas.diesler at jboss.com
@@ -49,7 +49,7 @@
   private ProcessDefinition processDefinition;
 
   @Override
-  public void setUp() throws Exception {
+  protected void setUp() throws Exception {
     super.setUp();
 
     processDefinition = ProcessDefinition.parseXmlString("<process-definition name='perf'>"
@@ -69,13 +69,16 @@
   }
 
   @Override
-  public void tearDown() throws Exception {
+  protected void tearDown() throws Exception {
     stopJobExecutor();
     jbpmContext.getGraphSession().deleteProcessDefinition(processDefinition.getId());
     super.tearDown();
   }
 
   public void testAsyncCall() {
+    // Won't Fix [JBPM-2043] Performance test coverage
+    if (getHibernateDialect().indexOf("HSQL") != -1) return;
+
     launchProcessInstances(WARMUP_INSTANCES);
 
     long startTime = System.currentTimeMillis();




More information about the jbpm-commits mailing list