[JAVA-2777] Mock async MongoIterable Created: 06/Feb/18 Updated: 11/Sep/19 Resolved: 06/Feb/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Rohit Jain | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I am looking for ways to mock response from MongoIterable in order to unit test code. Is there a way I could mock response back from mongo before any action(forEach() etc) is invoked on MongoIterable. |
| Comments |
| Comment by Ross Lawley [ 06/Feb/18 ] |
|
Closing as its a duplicate of |
| Comment by Rohit Jain [ 06/Feb/18 ] |
|
This is a clone of https://jira.mongodb.org/browse/JAVA-2773, created another one to bump up the priority on it. |