@MockitoBean
does not work with verify like @MockBean
did
#33991
Labels
in: test
Issues in the test module
status: duplicate
A duplicate of another issue
type: regression
A bug that is also a regression
Hello there!
I am having a problem where the soon to be removed
@MockBean
annotation is working but the new one@MockitoBean
isn't. On my modules and projects where I use MockK, this isn't of course a problem, but I have many projects that also use mockito. Here is a code example:I'm trying to get this pull request to work after quite a few tries, but to no avail yet:
jesperancinha/jeorg-spring-test-drives#736
The original class can be found here: https://github.com/jesperancinha/jeorg-spring-test-drives/blob/master/jeorg-spring/jeorg-spring-flash/jeorg-spring-flash-set-3/jeorg-spring-flash-3-2/src/test/java/org/jesperancinha/std/flash32/rowcallbackhandler/SpringFlash32LauncherTemplateTest.java
When I run the test, it seems like the verify never works and I get something like this:
Let me know what to do. I can't move further with this project at the moment. Cheers!
The text was updated successfully, but these errors were encountered: