The samples for mocking with Mockito don't work properly on newer versions due to https://github.com/mockito/mockito/issues/1206 -- the Mockito-generated class inherits the @ActivityMethod annotation and then cadence complains with an error like:
java.lang.IllegalArgumentException: Found @ActivityMethod annotation on "public xxx foo.bar.baz.MyActivities$MockitoMock$1369009352.createOrder(java.lang.String[]) " This annotation can be used only on the interface method it implements.
Per the referenced Mockito issue, it seems that newer versions have an API to suppress copying of such annotations to the generated class, which I guess has to be used here.
The samples for mocking with Mockito don't work properly on newer versions due to https://github.com/mockito/mockito/issues/1206 -- the Mockito-generated class inherits the @ActivityMethod annotation and then cadence complains with an error like:
Per the referenced Mockito issue, it seems that newer versions have an API to suppress copying of such annotations to the generated class, which I guess has to be used here.