Skip to content

Commit 3d248d1

Browse files
committed
DATAMONGO-1821 - Fix method ambiguity in tests when compiling against MongoDB 3.6
1 parent e193f2e commit 3d248d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/MongoTemplateUnitTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void setUp() {
129129
when(db.runCommand(Mockito.any(), Mockito.any(Class.class))).thenReturn(commandResultDocument);
130130
when(collection.find(Mockito.any(org.bson.Document.class))).thenReturn(findIterable);
131131
when(collection.mapReduce(Mockito.any(), Mockito.any())).thenReturn(mapReduceIterable);
132-
when(collection.count(any(), any())).thenReturn(1L);
132+
when(collection.count(any(Bson.class), any(CountOptions.class))).thenReturn(1L);
133133
when(findIterable.projection(Mockito.any())).thenReturn(findIterable);
134134
when(findIterable.sort(Mockito.any(org.bson.Document.class))).thenReturn(findIterable);
135135
when(findIterable.modifiers(Mockito.any(org.bson.Document.class))).thenReturn(findIterable);

0 commit comments

Comments
 (0)