Closed aSemy closed 3 years ago
@aSemy This might be intended behavior. This issue should probably be reported to the main Mockito project, as the implementation is delegated to Mockito.
Mostly likely - thanks for taking a look.
I've moved on to a different bit of work so I'll close this issue.
I wanted to make a mock that would never be called. I set
defaultAnswer
to throw an exception for everything. This works for most methods, but not forequals()
Maybe this is an underlying Mockito or Kotlin issue?
In this example, it is
mockedUUID.timestamp()
that throws an exception (which is good), butmockedUUID.equals("false")
does not (which is unexpected).