Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-1734

Mutation is hard to check in unit tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.4
    • 1.4.4, 1.5.1, 1.6.0
    • client
    • None

    Description

      treardon writes:

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ecn Eric C. Newton
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: