Adopt to changed Mockk artifact name.

Closes #4161
This commit is contained in:
Mark Paluch
2022-09-12 10:18:56 +02:00
parent e487c08b0c
commit 44a1123034
2 changed files with 2 additions and 3 deletions

View File

@@ -304,7 +304,7 @@
<dependency>
<groupId>io.mockk</groupId>
<artifactId>mockk</artifactId>
<artifactId>mockk-jvm</artifactId>
<version>${mockk}</version>
<scope>test</scope>
</dependency>

View File

@@ -2458,8 +2458,7 @@ public class MongoTemplateUnitTests extends MongoOperationsUnitTests {
@Override
protected MongoOperations getOperationsForExceptionHandling() {
MongoTemplate template = spy(this.template);
lenient().when(template.getDb()).thenThrow(new MongoException("Error"));
when(template.getMongoDatabaseFactory().getMongoDatabase()).thenThrow(new MongoException("Error"));
return template;
}