Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F653CD70 for ; Wed, 19 Jun 2013 12:24:36 +0000 (UTC) Received: (qmail 64827 invoked by uid 500); 19 Jun 2013 12:24:32 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 64721 invoked by uid 500); 19 Jun 2013 12:24:31 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 64709 invoked by uid 99); 19 Jun 2013 12:24:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jun 2013 12:24:29 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.24.159] (HELO codehaus01.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jun 2013 12:24:24 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 4C683B102C for ; Wed, 19 Jun 2013 07:24:03 -0500 (CDT) Date: Wed, 19 Jun 2013 07:24:03 -0500 (CDT) From: "Olivier Lamy (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (MPLUGINTESTING-28) Rule which just embeds an AbstractMojoTestCase so Junit4 may be used MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/MPLUGINTESTING-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Olivier Lamy closed MPLUGINTESTING-28. -------------------------------------- Resolution: Fixed Fix Version/s: 2.2 Merged. Thanks! > Rule which just embeds an AbstractMojoTestCase so Junit4 may be used > -------------------------------------------------------------------- > > Key: MPLUGINTESTING-28 > URL: https://jira.codehaus.org/browse/MPLUGINTESTING-28 > Project: Maven 2.x Plugin Testing > Issue Type: New Feature > Components: plugin-testing-harness > Affects Versions: 2.1 > Environment: Apache Maven 3.1.0-alpha-1 (c726cdd3a9ad5c3a419e1171f8c1925e336ead18; 2013-06-01 15:03:28+0200) > Maven home: /Users/mifr/lib/apache-maven-3.1.0-alpha-1 > Java version: 1.7.0_21, vendor: Oracle Corporation > Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre > Default locale: de_DE, platform encoding: UTF-8 > OS name: "mac os x", version: "10.8.3", arch: "x86_64", family: "mac" > Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100) > Maven home: /Users/mifr/lib/apache-maven-3.0.5 > Java version: 1.7.0_21, vendor: Oracle Corporation > Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre > Default locale: de_DE, platform encoding: UTF-8 > OS name: "mac os x", version: "10.8.3", arch: "x86_64", family: "mac" > Reporter: Mirko Friedenhagen > Assignee: Olivier Lamy > Fix For: 2.2 > > Attachments: plugin-testing-via-junit-rule.diff > > > To easily use Junit-4 features (Assumptions, Ignores etc.) and to be able to extend from own testcases it would be feasible to have a MojoRule. > The attached diff will add this rule, a corresponding Unit-Test as well updated documentation. Additionally I updated the parent-version of the harness as well as the compiler-plugin and site-plugin, needed anyway for Maven-3.1. > Runs successfully at my computer with Maven-3.0.5 and Maven-3.1.0-alpha1 :-). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira