db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r1081884 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
Date Tue, 15 Mar 2011 17:58:43 GMT
Author: kmarsden
Date: Tue Mar 15 17:58:42 2011
New Revision: 1081884

URL: http://svn.apache.org/viewvc?rev=1081884&view=rev
Log:
DERBY-4762 Failure in testPing

Add more diagnostics for failure in assertExecJavaCmdAsExpected. This does not fix the issue

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java?rev=1081884&r1=1081883&r2=1081884&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java Tue Mar
15 17:58:42 2011
@@ -513,7 +513,9 @@ public abstract class BaseTestCase
 	            expectedExitValue, exitValue);
 	    if (expectedString != null) {
 	        for (int i = 0; i < expectedString.length; i++) {
-	            assertFalse(output.indexOf(expectedString[i]) < 0);
+	            assertTrue("Could not find expectedString:" +
+	                    expectedString + " in output:" + output,
+	                    output.indexOf(expectedString[i]) >= 0);
 	        }
 	    }
 	}



Mime
View raw message