Skip to content

Commit b348bb6

Browse files
committed
Adopt to Mockito changes.
Closes #3923
1 parent 8be5dd3 commit b348bb6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ void bulkInsertInvokesEntityCallbacks() {
234234

235235
ArgumentCaptor<Person> personArgumentCaptor = ArgumentCaptor.forClass(Person.class);
236236
verify(beforeConvertCallback).onBeforeConvert(personArgumentCaptor.capture(), eq("collection-1"));
237-
verifyZeroInteractions(beforeSaveCallback);
237+
verifyNoInteractions(beforeSaveCallback);
238238

239239
ops.execute();
240240

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void doesNotCreateIndexForEntityComingFromDifferentMappingContext() {
115115

116116
creator.onApplicationEvent(event);
117117

118-
verifyZeroInteractions(collection);
118+
verifyNoInteractions(collection);
119119
}
120120

121121
@Test // DATAMONGO-530

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void buildsIndexDefinitionUsingFieldName() {
9090

9191
Mono<Void> publisher = checkForIndexes(mappingContext);
9292

93-
verifyZeroInteractions(collection);
93+
verifyNoInteractions(collection);
9494

9595
publisher.as(StepVerifier::create).verifyComplete();
9696

0 commit comments

Comments
 (0)