java.lang.ClassCastException: codegen.java.lang.Object$MockitoMock$1200321394 cannot be cast to java.lang.Boolean

GitHub | cushon | 2 months ago
  1. 0

    GitHub comment 357#251131400

    GitHub | 2 months ago | cushon
    java.lang.ClassCastException: codegen.java.lang.Object$MockitoMock$1200321394 cannot be cast to java.lang.Boolean
  2. 0

    GitHub comment 357#251009243

    GitHub | 2 months ago | cushon
    java.lang.ClassCastException: codegen.java.lang.Object$MockitoMock$1081761404 (in module: Unnamed Module) cannot be cast to java.lang.Boolean (in module: java.base)
  3. 0

    GitHub comment 357#251009243

    GitHub | 2 months ago | cushon
    java.lang.ClassCastException: codegen.java.lang.Object$MockitoMock$1081761404 (in module: Unnamed Module) cannot be cast to java.lang.Boolean (in module: java.base)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Mockito doesn't work well with Robolectric

    GitHub | 7 months ago | floating-cat
    java.lang.ClassCastException: Cannot cast android.widget.TextView$MockitoMock$809592802 to org.robolectric.shadows.ShadowActivity
  6. 0

    Unable to test MvpActivity with Robolectric and Mockito

    GitHub | 2 weeks ago | tomasznajda
    java.lang.ClassCastException: Cannot cast com.mateuszkoslacz.moviper.rxsample.viper.presenter.UserDetailsPresenter$MockitoMock$679472448 to org.robolectric.shadows.ShadowActivity

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      codegen.java.lang.Object$MockitoMock$1200321394 cannot be cast to java.lang.Boolean

      at org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNullsTest$1Sub$MockitoMock$412017289.get()
    2. Mockito
      ReturnsSmartNullsTest.generic_return_type_checkcast
      1. org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNullsTest$1Sub$MockitoMock$412017289.get(Unknown Source)
      2. org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNullsTest$1Sub$MockitoMock$412017289.get(Unknown Source)
      3. org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNullsTest.generic_return_type_checkcast(ReturnsSmartNullsTest.java:94)
      3 frames