org.mockito.exceptions.base.MockitoException: Failed to mock class com.example.example.test.MockActivity

Google Groups | Phlip Plumlee | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    MockitoException: Failed to mock class com.example.example.test.MainActivity

    Google Groups | 3 years ago | Phlip Plumlee
    org.mockito.exceptions.base.MockitoException: Failed to mock class com.example.example.test.MockActivity

    Root Cause Analysis

    1. org.mockito.exceptions.base.MockitoException

      Failed to mock class com.example.example.test.MockActivity

      at com.smartphins.example.test.SmartPhinsTest.test_mockito_mocks_activities()
    2. com.smartphins.example
      SmartPhinsTest.test_mockito_mocks_activities
      1. com.smartphins.example.test.SmartPhinsTest.test_mockito_mocks_activities(ExampleTest.java:39)
      1 frame
    3. Java RT
      Method.invokeNative
      1. java.lang.reflect.Method.invokeNative(Native Method)
      1 frame
    4. Android Platform
      InstrumentationTestCase.runTest
      1. android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
      2. android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
      2 frames