Author: alex.guizar(a)jboss.com
Date: 2009-01-19 02:06:19 -0500 (Mon, 19 Jan 2009)
New Revision: 3667
Modified:
jbpm3/trunk/modules/enterprise/src/test/java/org/jbpm/enterprise/jta/JtaDbPersistenceTest.java
Log:
do not delete process definition, it causes race conditions that affect subsequent tests
Modified:
jbpm3/trunk/modules/enterprise/src/test/java/org/jbpm/enterprise/jta/JtaDbPersistenceTest.java
===================================================================
---
jbpm3/trunk/modules/enterprise/src/test/java/org/jbpm/enterprise/jta/JtaDbPersistenceTest.java 2009-01-19
03:46:04 UTC (rev 3666)
+++
jbpm3/trunk/modules/enterprise/src/test/java/org/jbpm/enterprise/jta/JtaDbPersistenceTest.java 2009-01-19
07:06:19 UTC (rev 3667)
@@ -70,25 +70,25 @@
public void testCMTSuccess() throws Exception {
commandService = getCommandServiceHome().create();
- playTx(false);
+ playTransaction(false);
}
public void testCMTFailure() throws Exception {
commandService = getCommandServiceHome().create();
- playTx(true);
+ playTransaction(true);
}
public void testBMTSuccess() throws Exception {
commandService = new CommandServiceImpl(JbpmConfiguration.getInstance());
- playTx(false);
+ playTransaction(false);
}
public void testBMTFailure() throws Exception {
commandService = new CommandServiceImpl(JbpmConfiguration.getInstance());
- playTx(true);
+ playTransaction(true);
}
- private void playTx(boolean fail) throws Exception {
+ private void playTransaction(boolean fail) throws Exception {
long definitionId = deployProcess();
long instanceId = launchProcess(definitionId);
try {
@@ -98,7 +98,8 @@
log.debug("signal failed on process instance #" + instanceId, e);
}
assertEquals(!fail, hasEnded(instanceId));
- deleteProcess(definitionId);
+ // deleting the process causes race conditions that affect the next test
+ // deleteProcess(definitionId);
}
private long deployProcess() throws Exception {
Show replies by date