Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1905

Bson instances returned from Filters, Updates, and Aggregates methods should implement equals() or hashCode()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.11.0
    • Component/s: Builders
    • Labels:
      None

      Description

      Filter implementations in com.mongodb.client.model.Filters from the 3.0.X Java driver do not implement the equals() method. This is causing great difficulty unit testing the data layer since you can't compare a Filter Bson object with an expected value.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: