[JAVA-1498] Testing Aggregation using the new API Created: 09/Oct/14  Updated: 06/May/15  Resolved: 06/May/15

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: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Test Coverage

 Description   

Currently, the only thing that tests aggregation via the new API is CollectionAcceptance test. We should:

  • Work out which tests, if any, that use the old API need porting to use the new API
  • Find holes in the coverage and add tests.

In addition, there was an Ignored test in JavaClientOldTest:

public void testAggregateOnSecondary()

As it was ignored, this was not being run. But it's not clear why it was ignored or what it was trying to test. If this is an important test, we need to implement it using the new API.



 Comments   
Comment by Jeffrey Yemin [ 06/May/15 ]

MongoCollection is now well covered with unit tests.

Comment by Jeffrey Yemin [ 09/Oct/14 ]

But this ticket is about the legacy API, which doesn't look well covered either. We need to test both old and new.

Comment by Jeffrey Yemin [ 09/Oct/14 ]

There is also com.mongodb.MongoCollectionSpecification#aggregate should use AggregationOperation properly

We should add tests of all the overloads in that specification.

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