Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 17714 invoked from network); 1 Sep 2010 15:13:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Sep 2010 15:13:56 -0000 Received: (qmail 91316 invoked by uid 500); 1 Sep 2010 15:13:56 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 91154 invoked by uid 500); 1 Sep 2010 15:13:55 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 91147 invoked by uid 99); 1 Sep 2010 15:13:55 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 15:13:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 15:13:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 322BE23889E9; Wed, 1 Sep 2010 15:12:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100901151219.322BE23889E9@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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); }