Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E3FF10873 for ; Mon, 14 Oct 2013 11:46:44 +0000 (UTC) Received: (qmail 12942 invoked by uid 500); 14 Oct 2013 11:46:43 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 12923 invoked by uid 500); 14 Oct 2013 11:46:42 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 12911 invoked by uid 99); 14 Oct 2013 11:46:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Oct 2013 11:46:42 +0000 Date: Mon, 14 Oct 2013 11:46:41 +0000 (UTC) From: "Tim Reardon (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (ACCUMULO-1734) Mutation is hard to check in unit 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/ACCUMULO-1734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Reardon resolved ACCUMULO-1734. ----------------------------------- Resolution: Fixed Fix Version/s: 1.4.4 1.6.0 1.5.1 > Mutation is hard to check in unit tests > --------------------------------------- > > Key: ACCUMULO-1734 > URL: https://issues.apache.org/jira/browse/ACCUMULO-1734 > Project: Accumulo > Issue Type: Bug > Components: client > Affects Versions: 1.4.4 > Reporter: Eric Newton > Priority: Minor > Fix For: 1.5.1, 1.6.0, 1.4.4 > > > [~treardon] writes: > {quote} > 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. > {quote} -- This message was sent by Atlassian JIRA (v6.1#6144)