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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.11.0
    • 3.0.2
    • Builders
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: