@@ -328,8 +328,8 @@ public void processDocument(DBObject dbObject) throws MongoException, DataAccess
328
328
@ Test // DATAMONGO-1166
329
329
public void aggregateShouldHonorReadPreferenceWhenSet () {
330
330
331
- when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class ))). thenReturn (
332
- mock (CommandResult .class ));
331
+ when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class )))
332
+ . thenReturn ( mock (CommandResult .class ));
333
333
when (db .command (Mockito .any (DBObject .class ))).thenReturn (mock (CommandResult .class ));
334
334
template .setReadPreference (ReadPreference .secondary ());
335
335
@@ -341,8 +341,8 @@ public void aggregateShouldHonorReadPreferenceWhenSet() {
341
341
@ Test // DATAMONGO-1166
342
342
public void aggregateShouldIgnoreReadPreferenceWhenNotSet () {
343
343
344
- when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class ))). thenReturn (
345
- mock (CommandResult .class ));
344
+ when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class )))
345
+ . thenReturn ( mock (CommandResult .class ));
346
346
when (db .command (Mockito .any (DBObject .class ))).thenReturn (mock (CommandResult .class ));
347
347
348
348
template .aggregate (Aggregation .newAggregation (Aggregation .unwind ("foo" )), "collection-1" , Wrapper .class );
@@ -353,8 +353,8 @@ public void aggregateShouldIgnoreReadPreferenceWhenNotSet() {
353
353
@ Test // DATAMONGO-1166
354
354
public void geoNearShouldHonorReadPreferenceWhenSet () {
355
355
356
- when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class ))). thenReturn (
357
- mock (CommandResult .class ));
356
+ when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class )))
357
+ . thenReturn ( mock (CommandResult .class ));
358
358
when (db .command (Mockito .any (DBObject .class ))).thenReturn (mock (CommandResult .class ));
359
359
template .setReadPreference (ReadPreference .secondary ());
360
360
@@ -367,8 +367,8 @@ public void geoNearShouldHonorReadPreferenceWhenSet() {
367
367
@ Test // DATAMONGO-1166
368
368
public void geoNearShouldIgnoreReadPreferenceWhenNotSet () {
369
369
370
- when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class ))). thenReturn (
371
- mock (CommandResult .class ));
370
+ when (db .command (Mockito .any (DBObject .class ), Mockito .any (ReadPreference .class )))
371
+ . thenReturn ( mock (CommandResult .class ));
372
372
when (db .command (Mockito .any (DBObject .class ))).thenReturn (mock (CommandResult .class ));
373
373
374
374
NearQuery query = NearQuery .near (new Point (1 , 1 ));
0 commit comments