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

don't mark methods final

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.8.0
    • 2.2
    • API
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: