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


Solutions on the web

Solution icon of github
via GitHub by wesjpaul
, 1 year ago
MainActivity expected:<...egangsters.lollipin.[Ma]inActivity> but was:<...egangsters.lollipin.[CustomP]inActivity>

Solution icon of stackoverflow
CalendarActivity not found expected:<[Calendar]Activity> but was:<[Main]Activity>

Stack trace

junit.framework.ComparisonFailure: MainActivity expected:<...egangsters.lollipin.[Ma]inActivity> but was:<...egangsters.lollipin.[CustomP]inActivity>
	at com.robotium.solo.Asserter.assertCurrentActivity(Asserter.java:68)
	at com.robotium.solo.Solo.assertCurrentActivity(Solo.java:990)
	at lollipin.orangegangsters.github.com.lollipin.functional.PinLockTest.testPinLockWithBackgroundTimeout(PinLockTest.java:255)
	at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
	at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
	at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
	at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
	at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1985)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.