Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 26798 invoked from network); 3 Nov 2009 21:29:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Nov 2009 21:29:56 -0000 Received: (qmail 63051 invoked by uid 500); 3 Nov 2009 21:29:56 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 62981 invoked by uid 500); 3 Nov 2009 21:29:56 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 62971 invoked by uid 99); 3 Nov 2009 21:29:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Nov 2009 21:29:55 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Tue, 03 Nov 2009 21:29:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A7234234C1F2 for ; Tue, 3 Nov 2009 13:29:32 -0800 (PST) Message-ID: <2106309333.1257283772683.JavaMail.jira@brutus> Date: Tue, 3 Nov 2009 21:29:32 +0000 (UTC) From: "Konstantin Boudnik (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-1050) Introduce a mock object testing framework In-Reply-To: <182552465.1254414683622.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAPREDUCE-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773210#action_12773210 ] Konstantin Boudnik commented on MAPREDUCE-1050: ----------------------------------------------- On the other hand, having build modification + some test cases will allow to see immediately if Mockito works. So, I think with the patch as it is. +1 on the patch. Let's have it. > Introduce a mock object testing framework > ----------------------------------------- > > Key: MAPREDUCE-1050 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1050 > Project: Hadoop Map/Reduce > Issue Type: Test > Components: test > Reporter: Tom White > Assignee: Tom White > Attachments: MAPREDUCE-1050.patch, MAPREDUCE-1050.patch, MAPREDUCE-1050.patch > > > Using mock objects in unit tests can improve code quality (see e.g. http://www.mockobjects.com/). Hadoop would benefit from having a mock object framework for developers to write unit tests with. Doing so will allow a wider range of failure conditions to be tested and the tests will run faster. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.