Author: alex.guizar(a)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-204...
* @author mvecera(a)redhat.com
* @author pmacik(a)redhat.com
* @author thomas.diesler(a)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();