Return-Path: X-Original-To: apmail-xmlgraphics-fop-dev-archive@www.apache.org Delivered-To: apmail-xmlgraphics-fop-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFF4D7D63 for ; Fri, 30 Sep 2011 13:41:22 +0000 (UTC) Received: (qmail 67079 invoked by uid 500); 30 Sep 2011 13:41:22 -0000 Delivered-To: apmail-xmlgraphics-fop-dev-archive@xmlgraphics.apache.org Received: (qmail 67053 invoked by uid 500); 30 Sep 2011 13:41:22 -0000 Mailing-List: contact fop-dev-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: fop-dev@xmlgraphics.apache.org Delivered-To: mailing list fop-dev@xmlgraphics.apache.org Received: (qmail 67046 invoked by uid 99); 30 Sep 2011 13:41:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 13:41:22 +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.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 13:41:21 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 168DD4FFD7; Fri, 30 Sep 2011 13:41:01 +0000 (UTC) From: bugzilla@apache.org To: fop-dev@xmlgraphics.apache.org Subject: DO NOT REPLY [Bug 51928] New: [PATCH] Upgrade to JUnit4 Date: Fri, 30 Sep 2011 13:41:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Fop X-Bugzilla-Component: general X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: med1985@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: fop-dev@xmlgraphics.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 https://issues.apache.org/bugzilla/show_bug.cgi?id=51928 Bug #: 51928 Summary: [PATCH] Upgrade to JUnit4 Product: Fop Version: 1.0 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: general AssignedTo: fop-dev@xmlgraphics.apache.org ReportedBy: med1985@gmail.com Classification: Unclassified Created attachment 27649 --> https://issues.apache.org/bugzilla/attachment.cgi?id=27649 Update unit tests to JUnit4 This is the eagerly anticipated upgrade of FOPs JUnit tests to JUnit4. There are a few notable differences: 1) Tests can now be parameterized (I'll discuss this later). 2) The test outputs have less meaningful names when parameterized, the layout engine tests used to be instantiated with the names of set as the name of the FO used in the test. Because these have been changed to be parameterized tests, the output is less useful. I haven't found a suitable way of changing the name of the test for a parameterized test short of overriding the org.junit.runners.Parameterized. I've tried to touch as little as possible with the layout engine tests, in terms of their reliance on the system properties being injected in. I wish to change that in a future commit, but I think it's a logically separate issue and I will create a separate patch for that. The layout engine tests do need a little TLC, there seems to be a fair amount of code duplication in that area. I'll address these at the same time as the patch above. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.