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

GridFS not well tested

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Test Coverage
    • Labels:
      None

      There are unused methods on the GridFS API, which suggests they are not tested:

      • public DBCursor getFileList(final DBObject query)
      • public DBCursor getFileList(final DBObject query, final DBObject sort)
      • public GridFSInputFile createFile(final InputStream in)

      In addition, the GridFSFile class is referenced in any test classes at all - granted it is an abstract class, but I would expect it to be tested as a side effect of testing the GridFS functionality.

      There are also untested methods on GridFSInputFile:

      • public int saveChunks()

            Assignee:
            Unassigned Unassigned
            Reporter:
            trisha.gee@10gen.com Trisha Gee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: