File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/test/java/org/springframework/data/mongodb/core Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 304304
305305 <dependency >
306306 <groupId >io.mockk</groupId >
307- <artifactId >mockk</artifactId >
307+ <artifactId >mockk-jvm </artifactId >
308308 <version >${mockk} </version >
309309 <scope >test</scope >
310310 </dependency >
Original file line number Diff line number Diff line change @@ -2458,8 +2458,7 @@ private MongoTemplate mockOutGetDb() {
24582458
24592459 @ Override
24602460 protected MongoOperations getOperationsForExceptionHandling () {
2461- MongoTemplate template = spy (this .template );
2462- lenient ().when (template .getDb ()).thenThrow (new MongoException ("Error" ));
2461+ when (template .getMongoDatabaseFactory ().getMongoDatabase ()).thenThrow (new MongoException ("Error" ));
24632462 return template ;
24642463 }
24652464
You can’t perform that action at this time.
0 commit comments