commons-commits mailing list archives

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

URL: http://svn.apache.org/r1515176
Log:
Show whether class files are generated before failing with any warnings

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=1515176&r1=1515175&r2=1515176&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 17:19:52 2013
@@ -333,11 +333,16 @@ public abstract class AbstractCompilerTe
                }, reader, store);
     
         assertEquals(toString(result.getErrors()), 0, result.getErrors().length);
-        assertEquals(toString(result.getWarnings()), 0, result.getWarnings().length);
     
         final byte[] clazzBytes = store.read("jci/Simple.class");
         assertNotNull(clazzBytes);
         assertTrue(clazzBytes.length > 0);
+
+        final byte[] additionalTopLevelBytes = store.read("jci/AdditionalTopLevel.class");
+        assertNotNull(additionalTopLevelBytes);
+        assertTrue(additionalTopLevelBytes.length > 0);
+
+        assertEquals(toString(result.getWarnings()), 0, result.getWarnings().length);
     }
 
     public final String toString( final CompilationProblem[] pProblems ) {



Mime
View raw message