@@ -199,7 +199,7 @@ public void testDollarOutOnSecondary() throws UnknownHostException {
199199 AggregationOptions options = AggregationOptions .builder ()
200200 .outputMode (OutputMode .CURSOR )
201201 .build ();
202- MongoCursor cursor = verify (pipeline , options , ReadPreference .secondary (), aggCollection );
202+ Cursor cursor = verify (pipeline , options , ReadPreference .secondary (), aggCollection );
203203 assertEquals (2 , rsDatabase .getCollection ("aggCollection" ).count ());
204204 assertEquals (primary , cursor .getServerAddress ());
205205 }
@@ -222,7 +222,7 @@ public void testAggregateOnSecondary() throws UnknownHostException {
222222 AggregationOptions options = AggregationOptions .builder ()
223223 .outputMode (OutputMode .INLINE )
224224 .build ();
225- MongoCursor cursor = verify (pipeline , options , ReadPreference .secondary (), aggCollection );
225+ Cursor cursor = verify (pipeline , options , ReadPreference .secondary (), aggCollection );
226226 assertNotEquals (primary , cursor .getServerAddress ());
227227 }
228228
@@ -266,9 +266,9 @@ private void verify(final List<DBObject> pipeline, final AggregationOptions opti
266266 verify (pipeline , options , readPreference , collection );
267267 }
268268
269- private MongoCursor verify (final List <DBObject > pipeline , final AggregationOptions options , final ReadPreference readPreference ,
269+ private Cursor verify (final List <DBObject > pipeline , final AggregationOptions options , final ReadPreference readPreference ,
270270 final DBCollection collection ) {
271- final MongoCursor cursor = collection .aggregate (pipeline , options , readPreference );
271+ final Cursor cursor = collection .aggregate (pipeline , options , readPreference );
272272
273273 final Map <String , DBObject > results = new HashMap <String , DBObject >();
274274 while (cursor .hasNext ()) {
0 commit comments