ClassFormatError when trying to mock certain interfaces · Issue #1215 · mockito/mockito · GitHub
I stumbled over some strange behaviour when trying to update from a 1.x version of Mockito to 2.x. One of my interfaces would no longer want to be mocked, throwing a MockitoException, with an error message of Mockito cannot mock this class: interface <MyInterfaceName>, ultimately triggered by a java.lang.ClassFormatError: Duplicate field name&signature in class file <MyInterfaceName>$MockitoMock$1318839329
Read full article from ClassFormatError when trying to mock certain interfaces · Issue #1215 · mockito/mockito · GitHub
No comments:
Post a Comment