Closed Goginenni closed 11 years ago
Did you also add the jar for regular FEST?
if you arent using Maven to build your project remember to add:
fest-assert-core-2.0M8.jar fest-util-1.2.3.jar fest-test-2.1.0.jar
to your test project libs. All this jar you can find on http://search.maven.org/
Cheers!
Hi ,
it is working after adding jar files. Thanks.
Regards, Gogineni
Hi,
i am trying to use the assertThat function for a ImageView/view. This is my my first test case with fest library. I am getting runtime exception while running the test cases. I am using Android 4.2 version.Here is exception trace
java.lang.NoClassDefFoundError: org.fest.assertions.api.android.view.ViewAssert at org.fest.assertions.api.ANDROID.assertThat(ANDROID.java:615) at com.android.mobile.test.matches.NewUserDefaultMatchesTest.testTapOnEditButtonEnableEditActions(NewUserDefaultMatchesTest.java:134) 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:1661)
I have added library to Build path and put in libs directory of the test project. Please let me know where am doing wrong.
Regards, Gogineni