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()

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.11.0
    • Affects Version/s: 3.0.2
    • Component/s: Builders
    • None

      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.

            Assignee:
            john.stewart@mongodb.com John Stewart (Inactive)
            Reporter:
            blake_bauman@apple.com Blake Bauman
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: