junit.framework.ComparisonFailure: MainActivity expected:<...egangsters.lollipin.[Ma]inActivity> but was:<...egangsters.lollipin.[CustomP]inActivity>

GitHub | wesjpaul | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GitHub comment 99#239317351

    GitHub | 7 months ago | wesjpaul
    junit.framework.ComparisonFailure: MainActivity expected:<...egangsters.lollipin.[Ma]inActivity> but was:<...egangsters.lollipin.[CustomP]inActivity>
  2. 0

    How to test my current activity after intent with Robotium

    Stack Overflow | 2 years ago | Mustafa Olkun
    junit.framework.ComparisonFailure: CalendarActivity not found expected:<[Calendar]Activity> but was:<[Main]Activity>

    Root Cause Analysis

    1. junit.framework.ComparisonFailure

      MainActivity expected:<...egangsters.lollipin.[Ma]inActivity> but was:<...egangsters.lollipin.[CustomP]inActivity>

      at com.robotium.solo.Asserter.assertCurrentActivity()
    2. com.robotium.solo
      Solo.assertCurrentActivity
      1. com.robotium.solo.Asserter.assertCurrentActivity(Asserter.java:68)
      2. com.robotium.solo.Solo.assertCurrentActivity(Solo.java:990)
      2 frames
    3. lollipin.orangegangsters.github
      PinLockTest.testPinLockWithBackgroundTimeout
      1. lollipin.orangegangsters.github.com.lollipin.functional.PinLockTest.testPinLockWithBackgroundTimeout(PinLockTest.java:255)
      1 frame
    4. Android Platform
      Instrumentation$InstrumentationThread.run
      1. android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
      2. android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
      3. android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
      4. android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
      5. android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
      6. android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
      7. android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1985)
      7 frames