java.lang.ClassCastException: org.mockito.Answers cannot be cast to org.mockito.stubbing.Answer

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 54#237137557
    via GitHub by K0zka
    ,
  • GitHub comment 35#223973834
    via GitHub by sbuettner
    ,
  • eq and any failing with data classes
    via GitHub by K0zka
    ,
    • java.lang.ClassCastException: org.mockito.Answers cannot be cast to org.mockito.stubbing.Answer at com.nhaarman.mockito_kotlin.CreateInstanceKt.uncheckedMock(CreateInstance.kt:178) at com.nhaarman.mockito_kotlin.CreateInstanceKt.createInstance(CreateInstance.kt:58)
    No Bugmate found.