Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14FF1100D0 for ; Sun, 18 Aug 2013 17:20:16 +0000 (UTC) Received: (qmail 34805 invoked by uid 500); 18 Aug 2013 17:20:15 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 34505 invoked by uid 500); 18 Aug 2013 17:20:14 -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 34497 invoked by uid 99); 18 Aug 2013 17:20:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Aug 2013 17:20:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Sun, 18 Aug 2013 17:20:13 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 084C62388906; Sun, 18 Aug 2013 17:19:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130818171953.084C62388906@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 ) {