commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r991564 - /commons/proper/jci/trunk/core/src/test/java/org/apache/commons/jci/compilers/AbstractCompilerTestCase.java
Date Wed, 01 Sep 2010 15:12:19 GMT
Author: sebb
Date: Wed Sep  1 15:12:18 2010
New Revision: 991564

URL: http://svn.apache.org/viewvc?rev=991564&view=rev
Log:
Better docs in case test fails

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=991564&r1=991563&r2=991564&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
Wed Sep  1 15:12:18 2010
@@ -81,8 +81,8 @@ public abstract class AbstractCompilerTe
         assertEquals(toString(result.getWarnings()), 0, result.getWarnings().length);
 
         final byte[] clazzBytes = store.read("jci/Simple.class");
-        assertNotNull(clazzBytes);
-        assertTrue(clazzBytes.length > 0);
+        assertNotNull("jci/Simple.class is not null",clazzBytes);
+        assertTrue("jci/Simple.class is not empty", clazzBytes.length > 0);
     }
 
     public void testExtendedCompile() throws Exception {
@@ -129,12 +129,12 @@ public abstract class AbstractCompilerTe
         assertEquals(toString(result.getWarnings()), 0, result.getWarnings().length);
 
         final byte[] clazzBytesSimple = store.read("jci/Simple.class");
-        assertNotNull(clazzBytesSimple);
-        assertTrue(clazzBytesSimple.length > 0);
+        assertNotNull("jci/Simple.class is not null", clazzBytesSimple);
+        assertTrue("jci/Simple.class is not empty", clazzBytesSimple.length > 0);
 
         final byte[] clazzBytesExtended = store.read("jci/Extended.class");
-        assertNotNull(clazzBytesExtended);
-        assertTrue(clazzBytesExtended.length > 0);
+        assertNotNull("jci/Extended.class is not null", clazzBytesExtended);
+        assertTrue("jci/Extended.class is not empty",clazzBytesExtended.length > 0);
     }
 
     public void testInternalClassCompile() throws Exception {
@@ -176,12 +176,12 @@ public abstract class AbstractCompilerTe
         assertEquals(toString(result.getWarnings()), 0, result.getWarnings().length);
 
         final byte[] clazzBytes = store.read("jci/Simple.class");
-        assertNotNull(clazzBytes);
-        assertTrue(clazzBytes.length > 0);
+        assertNotNull("jci/Simple.class is not null", clazzBytes);
+        assertTrue("jci/Simple.class is not empty", clazzBytes.length > 0);
 
         final byte[] subClazzBytes = store.read("jci/Simple$Sub.class");
-        assertNotNull(subClazzBytes);
-        assertTrue(subClazzBytes.length > 0);
+        assertNotNull("jci/Simple$Sub.class is not null", subClazzBytes);
+        assertTrue("jci/Simple$Sub.class is not empty", subClazzBytes.length > 0);
 
     }
 
@@ -221,8 +221,8 @@ public abstract class AbstractCompilerTe
         assertEquals(toString(result.getWarnings()), 0, result.getWarnings().length);
 
         final byte[] clazzBytes = store.read("Jci/Simple.class");
-        assertNotNull(clazzBytes);
-        assertTrue(clazzBytes.length > 0);
+        assertNotNull("Jci/Simple.class is not null", clazzBytes);
+        assertTrue("Jci/Simple.class is not empty", clazzBytes.length > 0);
     }
 
     /*
@@ -284,12 +284,12 @@ public abstract class AbstractCompilerTe
         assertEquals(toString(result.getWarnings()), 0, result.getWarnings().length);
 
         final byte[] clazzBytesFunc1 = store.read("jci/Func1.class");
-        assertNotNull(clazzBytesFunc1);
-        assertTrue(clazzBytesFunc1.length > 0);
+        assertNotNull("jci/Func1.class is not null", clazzBytesFunc1);
+        assertTrue("jci/Func1.class is not empty", clazzBytesFunc1.length > 0);
 
         final byte[] clazzBytesFunc2 = store.read("jci/Func2.class");
-        assertNotNull(clazzBytesFunc2);
-        assertTrue(clazzBytesFunc2.length > 0);
+        assertNotNull("jci/Func2.class is not null", clazzBytesFunc2);
+        assertTrue("jci/Func2.class is not empty", clazzBytesFunc2.length > 0);
     }
     
 



Mime
View raw message