Version of JMockit that was used: 1.19, also confirmed in 1.29
Description of the problem or enhancement request:
I'm using withCapture() in a Verifications block to make sure a called method uses the expected parameter. Then I'd like to use assertEquals to make sure the captured parameter is what I expect - in my case a LocalDateTime; I haven't been able to reproduce the same issue with other classes.
Instead of the assertEquals telling me what I want to know, though, I get the following:
Version of JMockit that was used: 1.19, also confirmed in 1.29
Description of the problem or enhancement request:
I'm using
withCapture()
in aVerifications
block to make sure a called method uses the expected parameter. Then I'd like to useassertEquals
to make sure the captured parameter is what I expect - in my case aLocalDateTime
; I haven't been able to reproduce the same issue with other classes.Instead of the
assertEquals
telling me what I want to know, though, I get the following:mockit.internal.MissingInvocation: Missing invocation of: java.time.LocalDateTime#equals(Object)
It's as though JMockit is considering the call to
equals()
used byassertEquals()
part of the code to be verified.Here's a simplified, self-contained test case demonstrating the bug:
The text was updated successfully, but these errors were encountered: