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

don't mark methods final

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.8.0
    • Affects Version/s: 2.2
    • Component/s: API
    • None

      We try to write unit tests for all of our application logic. It is very difficult to do this with mongo. Ideally, we could test our application without having a real mongo server running. Unfortunately, many of the methods inside classes like Mongo, DBCollection, and DB are marked final. This means we can't either stub them out or mock them out.

      Removing the "final" keyword would make this a lot easier for us.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            permans Sam Perman
            Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: