commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1004105 - /commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/DefaultExecutorTest.java
Date Mon, 04 Oct 2010 04:08:39 GMT
Author: sebb
Date: Mon Oct  4 04:08:39 2010
New Revision: 1004105

URL: http://svn.apache.org/viewvc?rev=1004105&view=rev
Log:
Make it easier to find what is failing

Modified:
    commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/DefaultExecutorTest.java

Modified: commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/DefaultExecutorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/DefaultExecutorTest.java?rev=1004105&r1=1004104&r2=1004105&view=diff
==============================================================================
--- commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/DefaultExecutorTest.java
(original)
+++ commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/DefaultExecutorTest.java
Mon Oct  4 04:08:39 2010
@@ -583,7 +583,8 @@ public class DefaultExecutorTest extends
         assertTrue("ResultHandler received a result", resultHandler.hasResult());
 
         assertFalse(exec.isFailure(resultHandler.getExitValue()));
-        assertTrue("Result should contain 'Hello Foo!'", this.baos.toString().indexOf("Hello
Foo!") > 0);
+        String result = baos.toString();
+        assertTrue("Result +'"+result+"' should contain 'Hello Foo!'", result.indexOf("Hello
Foo!") > 0);
     }
 
     /**



Mime
View raw message