Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 11631 invoked from network); 29 May 2009 17:08:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 May 2009 17:08:59 -0000 Received: (qmail 65885 invoked by uid 500); 29 May 2009 17:09:11 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 65815 invoked by uid 500); 29 May 2009 17:09:10 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 65778 invoked by uid 99); 29 May 2009 17:09:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 May 2009 17:09:10 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 May 2009 17:09:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BEE8F234C004 for ; Fri, 29 May 2009 10:08:45 -0700 (PDT) Message-ID: <635332570.1243616925777.JavaMail.jira@brutus> Date: Fri, 29 May 2009 10:08:45 -0700 (PDT) From: "Konstantin Boudnik (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-4901) Upgrade to JUnit 4 In-Reply-To: <1370926570.1229519504690.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-4901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714514#action_12714514 ] Konstantin Boudnik commented on HADOOP-4901: -------------------------------------------- Or we can start using testng to run JUnit tests natively and migrate them to 'native' TestNG format eventually. There's a couple of benefits which JUnit doesn't have. E.g. - parallel tests execution - sameVM execution (without forking) - absence of mandatory TestCase's inheritance which limits the options of test developers. With regards, Cos > Upgrade to JUnit 4 > ------------------ > > Key: HADOOP-4901 > URL: https://issues.apache.org/jira/browse/HADOOP-4901 > Project: Hadoop Core > Issue Type: Improvement > Components: test > Reporter: Tom White > Assignee: Alex Loddengaard > > Amongst other things, JUnit 4 has better support for class-wide set up and tear down (via @BeforeClass and @AfterClass annotations), and more flexible assertions (http://junit.sourceforge.net/doc/ReleaseNotes4.4.html). It would be nice to be able to take advantage of these features in tests we write. > JUnit 4 can run tests written for JUnit 3.8.1 without any changes. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.