accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Reardon <>
Subject Re: Has anyone used mrunit to test Mutations produced from Mappers or Reducers?
Date Tue, 24 Sep 2013 16:19:35 GMT
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


On Tue, Sep 24, 2013 at 8:58 AM, David Medinets <>wrote:

there is a question on Stack Overflow about this. And I would not mind
> knowing the answer also.

View raw message