Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 4936 invoked from network); 7 Apr 2011 19:50:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Apr 2011 19:50:43 -0000 Received: (qmail 27110 invoked by uid 500); 7 Apr 2011 19:50:43 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 27079 invoked by uid 500); 7 Apr 2011 19:50:43 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 27071 invoked by uid 99); 7 Apr 2011 19:50:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2011 19:50:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2011 19:50:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C13569744E for ; Thu, 7 Apr 2011 19:50:05 +0000 (UTC) Date: Thu, 7 Apr 2011 19:50:05 +0000 (UTC) From: "ryan rawson (JIRA)" To: issues@hbase.apache.org Message-ID: <1360279396.41952.1302205805788.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <4282313.41904.1302203645774.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-3754) Define a DummyServer for tests 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/HBASE-3754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017100#comment-13017100 ] ryan rawson commented on HBASE-3754: ------------------------------------ Could we use mockito for this? It should let you do 1 line mock creation. > Define a DummyServer for tests > ------------------------------ > > Key: HBASE-3754 > URL: https://issues.apache.org/jira/browse/HBASE-3754 > Project: HBase > Issue Type: Improvement > Affects Versions: 0.90.1 > Reporter: Jean-Daniel Cryans > Fix For: 0.92.0 > > > There's a number of unit tests that implement their own Server just to pass it to some other class without implementing anything specific except getting the Configuration. We should define one that all could use and refactor the others out. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira