@MockitoSpyBean
does not see the first interaction
#33986
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,
I just migrate a working code from 3.3.2 to 3.4.0 and when I change my tests to use the new
@MockitoSpyBean
I got exceptions with Mockito telling me that there is not the expected interaction with my mock. I cannot produce code easily, but here the exception :Here an extract of the code the producing the exception :
The actual class on Github : https://github.com/quickfix-j/quickfixj/blob/QFJ_RELEASE_2_3_1/quickfixj-core/src/main/java/quickfix/ThreadedSocketInitiator.java#L111
As you can see you cannot call
startInitiators()
without callingstart()
.If I put back
@SpyBean
then everything works !Thank you in advance for your help 🙏🏻
The text was updated successfully, but these errors were encountered: