Author: tom.baeyens(a)jboss.com
Date: 2009-06-12 10:47:43 -0400 (Fri, 12 Jun 2009)
New Revision: 5034
Modified:
jbpm4/trunk/modules/test-base/src/main/java/org/jbpm/test/JbpmTestCase.java
Log:
Modified: jbpm4/trunk/modules/test-base/src/main/java/org/jbpm/test/JbpmTestCase.java
===================================================================
--- jbpm4/trunk/modules/test-base/src/main/java/org/jbpm/test/JbpmTestCase.java 2009-06-12
14:47:29 UTC (rev 5033)
+++ jbpm4/trunk/modules/test-base/src/main/java/org/jbpm/test/JbpmTestCase.java 2009-06-12
14:47:43 UTC (rev 5034)
@@ -107,7 +107,9 @@
}
String recordsLeftMsg = Db.verifyClean(processEngine);
- if (recordsLeftMsg.length()>0) {
+ if ( (recordsLeftMsg!=null)
+ && (recordsLeftMsg.length()>0)
+ ) {
String message = "database was not clean after test: "+recordsLeftMsg;
if (exception==null) {
throw new JbpmException(message);
Show replies by date