don't mark methods final

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 2.8.0
    • Affects Version/s: 2.2
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Jeffrey Yemin
            Reporter:
            Sam Perman
            None
            Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: