Skip to content

Junit Test Issues

Code Guru edited this page Apr 24, 2014 · 8 revisions

This page is to document those tests which do not pass consistently.

  1. testAddCards - Fails at times with the assertion failure
BaseballCardDetailsAddCardsTest.testAddCard
AVD_for_Nexus_S_by_Google [emulator-5554]
bbct.android.common.activity.test.BaseballCardDetailsAddCardsTest
testAddCard (bbct.android.common.activity.test.BaseballCardDetailsAddCardsTest) [AVD_for_Nexus_S_by_Google [emulator-5554]]
junit.framework.AssertionFailedError: Missing card: BaseballCard{autographed=true, condition=Gem;Mint, cardBrand=TMG, cardYear=1993, cardNumber=5, cardValue=10000, cardCount=1, playerName=Ken;Griffey;Jr., team=All-Star, playerPosition=Center;Field}
at bbct.android.common.activity.test.BaseballCardDetailsAddCardsTest.testAddCard(BaseballCardDetailsAddCardsTest.java:106)
at java.lang.reflect.Method.invokeNative(Native Method)
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:190)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1584)

Clone this wiki locally