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

GridFS not well tested

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Test Coverage
    • None

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: