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

GitHub | K0zka | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 54#237137557

    GitHub | 8 months ago | K0zka
    java.lang.ClassCastException: org.mockito.Answers cannot be cast to org.mockito.stubbing.Answer
  2. 0

    GitHub comment 35#223973834

    GitHub | 10 months ago | sbuettner
    java.lang.ClassCastException: org.mockito.Answers cannot be cast to org.mockito.stubbing.Answer
  3. 0

    Android Test: ClassCastException: org.mockito.Answers cannot be cast to org.mockito.stubbing.Answer

    GitHub | 9 months ago | cypressious
    java.lang.ClassCastException: org.mockito.Answers cannot be cast to org.mockito.stubbing.Answer
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    eq and any failing with data classes

    GitHub | 11 months ago | K0zka
    java.lang.ClassCastException: org.mockito.Answers cannot be cast to org.mockito.stubbing.Answer

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.mockito.Answers cannot be cast to org.mockito.stubbing.Answer

      at com.nhaarman.mockito_kotlin.CreateInstanceKt.uncheckedMock()
    2. com.nhaarman.mockito_kotlin
      CreateInstanceKt.createInstance
      1. com.nhaarman.mockito_kotlin.CreateInstanceKt.uncheckedMock(CreateInstance.kt:178)
      2. com.nhaarman.mockito_kotlin.CreateInstanceKt.createInstance(CreateInstance.kt:58)
      2 frames