@@ -370,8 +370,8 @@ public void processDocument(DBObject dbObject) throws MongoException, DataAccess
370
370
@ Test
371
371
public void aggregateShouldHonorReadPreferenceWhenSet () {
372
372
373
- when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class ))). thenReturn (
374
- mock (CommandResult .class ));
373
+ when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class )))
374
+ . thenReturn ( mock (CommandResult .class ));
375
375
when (db .command (Mockito .any (DBObject .class ))).thenReturn (mock (CommandResult .class ));
376
376
template .setReadPreference (ReadPreference .secondary ());
377
377
@@ -386,8 +386,8 @@ public void aggregateShouldHonorReadPreferenceWhenSet() {
386
386
@ Test
387
387
public void aggregateShouldIgnoreReadPreferenceWhenNotSet () {
388
388
389
- when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class ))). thenReturn (
390
- mock (CommandResult .class ));
389
+ when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class )))
390
+ . thenReturn ( mock (CommandResult .class ));
391
391
when (db .command (Mockito .any (DBObject .class ))).thenReturn (mock (CommandResult .class ));
392
392
393
393
template .aggregate (Aggregation .newAggregation (Aggregation .unwind ("foo" )), "collection-1" , Wrapper .class );
@@ -401,8 +401,8 @@ public void aggregateShouldIgnoreReadPreferenceWhenNotSet() {
401
401
@ Test
402
402
public void geoNearShouldHonorReadPreferenceWhenSet () {
403
403
404
- when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class ))). thenReturn (
405
- mock (CommandResult .class ));
404
+ when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class )))
405
+ . thenReturn ( mock (CommandResult .class ));
406
406
when (db .command (Mockito .any (DBObject .class ))).thenReturn (mock (CommandResult .class ));
407
407
template .setReadPreference (ReadPreference .secondary ());
408
408
@@ -418,8 +418,8 @@ public void geoNearShouldHonorReadPreferenceWhenSet() {
418
418
@ Test
419
419
public void geoNearShouldIgnoreReadPreferenceWhenNotSet () {
420
420
421
- when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class ))). thenReturn (
422
- mock (CommandResult .class ));
421
+ when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class )))
422
+ . thenReturn ( mock (CommandResult .class ));
423
423
when (db .command (Mockito .any (DBObject .class ))).thenReturn (mock (CommandResult .class ));
424
424
425
425
NearQuery query = NearQuery .near (new Point (1 , 1 ));
0 commit comments