Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 58965 invoked from network); 1 Oct 2009 16:47:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Oct 2009 16:47:56 -0000 Received: (qmail 92324 invoked by uid 500); 1 Oct 2009 16:47:56 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 92276 invoked by uid 500); 1 Oct 2009 16:47: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 92266 invoked by uid 99); 1 Oct 2009 16:47:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 16:47:56 +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; Thu, 01 Oct 2009 16:47:44 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C8DD2234C045 for ; Thu, 1 Oct 2009 09:47:23 -0700 (PDT) Message-ID: <1476009574.1254415643821.JavaMail.jira@brutus> Date: Thu, 1 Oct 2009 09:47:23 -0700 (PDT) From: "Nigel Daley (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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761267#action_12761267 ] Nigel Daley commented on MAPREDUCE-1050: ---------------------------------------- One thing to consider with dynamic mock frameworks is how easy it it so understand failures when they occur. My experience with easymock (from a few years back) was that it's use of DynamicProxy made stack traces really difficult to figure out when a test failed. Tom, any experience with this using mockito? > 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 > > > 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.