commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1515199 - /commons/proper/jci/trunk/core/src/test/java/org/apache/commons/jci/compilers/AbstractCompilerTestCase.java
Date Sun, 18 Aug 2013 19:07:10 GMT
Author: sebb
Date: Sun Aug 18 19:07:10 2013
New Revision: 1515199

URL: http://svn.apache.org/r1515199
Log:
Better test error messages

Modified:
    commons/proper/jci/trunk/core/src/test/java/org/apache/commons/jci/compilers/AbstractCompilerTestCase.java

Modified: commons/proper/jci/trunk/core/src/test/java/org/apache/commons/jci/compilers/AbstractCompilerTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/jci/trunk/core/src/test/java/org/apache/commons/jci/compilers/AbstractCompilerTestCase.java?rev=1515199&r1=1515198&r2=1515199&view=diff
==============================================================================
--- commons/proper/jci/trunk/core/src/test/java/org/apache/commons/jci/compilers/AbstractCompilerTestCase.java
(original)
+++ commons/proper/jci/trunk/core/src/test/java/org/apache/commons/jci/compilers/AbstractCompilerTestCase.java
Sun Aug 18 19:07:10 2013
@@ -332,17 +332,17 @@ public abstract class AbstractCompilerTe
                        "jci/Simple.java"
                }, reader, store);
     
-        assertEquals(toString(result.getErrors()), 0, result.getErrors().length);
+        assertEquals("Unexpected errors(s): " + toString(result.getErrors()), 0, result.getErrors().length);
     
         final byte[] clazzBytes = store.read("jci/Simple.class");
-        assertNotNull(clazzBytes);
+        assertNotNull("Expected to find jci/Simple.class", clazzBytes);
         assertTrue(clazzBytes.length > 0);
 
         final byte[] additionalTopLevelBytes = store.read("jci/AdditionalTopLevel.class");
-        assertNotNull(additionalTopLevelBytes);
+        assertNotNull("Expected to find jci/AdditionalTopLevel.class", additionalTopLevelBytes);
         assertTrue(additionalTopLevelBytes.length > 0);
 
-        assertEquals(toString(result.getWarnings()), 0, result.getWarnings().length);
+        assertEquals("Unexpected warning(s): " + toString(result.getWarnings()), 0, result.getWarnings().length);
     }
 
     public final String toString( final CompilationProblem[] pProblems ) {



Mime
View raw message