[jbpm-commits] JBoss JBPM SVN: r5034 - jbpm4/trunk/modules/test-base/src/main/java/org/jbpm/test.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Jun 12 10:47:43 EDT 2009


Author: tom.baeyens at 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);




More information about the jbpm-commits mailing list