[JAVA-1439] GridFS not well tested Created: 12/Sep/14  Updated: 23/Jun/17  Resolved: 23/Jun/17

Status: Closed
Project: Java Driver
Component/s: Test Coverage
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Trisha Gee Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Test Coverage

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

Generated at Thu Feb 08 08:54:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.