Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D743810B97 for ; Tue, 24 Sep 2013 16:31:30 +0000 (UTC) Received: (qmail 46294 invoked by uid 500); 24 Sep 2013 16:31:30 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 46092 invoked by uid 500); 24 Sep 2013 16:31:30 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 46059 invoked by uid 99); 24 Sep 2013 16:31:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Sep 2013 16:31:29 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of eric.newton@gmail.com designates 209.85.212.176 as permitted sender) Received: from [209.85.212.176] (HELO mail-wi0-f176.google.com) (209.85.212.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Sep 2013 16:31:24 +0000 Received: by mail-wi0-f176.google.com with SMTP id cb5so4095797wib.9 for ; Tue, 24 Sep 2013 09:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/u1sGbaESU4R8oJJ74Kk6Gnx+Ftmnj0rla8FdVcvuCc=; b=maafPq6iQxIOy5qBD/Z4O2wB6IRllTDCqGHR3wHA9pnuRWrC6AYNtWSNA3bvDmrNe0 hzw7KylkfkcIJxANyfwYuaDl+nnzRiRNMfABLpkG1dMDoUmyBYrTrCJP5gnd5xjNZCCs kFUuknhM2m5ptVKzUB+mf3/+9tSlI/Y7f6OJDh9lEfm1Fhbghy+i98beNfzz4kI60CYx nL7RDJjdU3KtE08InUjvvmaxHfkwGV1zl7IMNpXXvEfECWRtfcusI2M1yHpGwzz7De8u HL5mwyvIZm+0GfhEeheQUgSBHpimws0fiE0T/jvB+VnGS9HypBHbBp/lCrc+vaQdJ3et aSkA== MIME-Version: 1.0 X-Received: by 10.180.210.231 with SMTP id mx7mr19062167wic.5.1380040263588; Tue, 24 Sep 2013 09:31:03 -0700 (PDT) Received: by 10.216.85.138 with HTTP; Tue, 24 Sep 2013 09:31:03 -0700 (PDT) In-Reply-To: References: Date: Tue, 24 Sep 2013 12:31:03 -0400 Message-ID: Subject: Re: Has anyone used mrunit to test Mutations produced from Mappers or Reducers? From: Eric Newton To: "user@accumulo.apache.org" Content-Type: multipart/alternative; boundary=001a11c25d32afe18f04e723a9e6 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c25d32afe18f04e723a9e6 Content-Type: text/plain; charset=ISO-8859-1 Created https://issues.apache.org/jira/browse/ACCUMULO-1734 in response. -Eric On Tue, Sep 24, 2013 at 12:19 PM, Tim Reardon wrote: > The problem is that Mutation.equals() calls a private serialize() method > that modifies the data about to be checked. I have successfully worked > around this in the past by wrapping the Mutation in a new Mutation, which > calls serialize under the hood: > > assertEquals(expectedMutation, new Mutation(actualMutation)); > > This applies to 1.4.x, I don't know if Mutation.equals() has changed since > then. > > Tim > > On Tue, Sep 24, 2013 at 8:58 AM, David Medinets wrote: > >> >> http://stackoverflow.com/questions/18541143/how-to-test-a-reducer-containing-a-mutation- there is a question on Stack Overflow about this. And I would not mind >> knowing the answer also. >> > > --001a11c25d32afe18f04e723a9e6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
--001a11c25d32afe18f04e723a9e6--