Closed dzlab closed 11 years ago
Are you including the fest-core
JAR in your test classpath?
Yes I did, because I was having same issue as the one in #50
fest-core
looks like it depends on fest-util
as well. Do you have that?
I just added the fest-util lib and now everything works fine. Really cool this fest-android :)
I'm having another issue when I call assertThat(mLst).isVisible();
Here is the exception trace:
java.lang.NoSuchMethodError: org.fest.util.Strings.isNullOrEmpty
at org.fest.assertions.internal.Failures.failureIfErrorMessageIsOverriden(Failures.java:102)
at org.fest.assertions.internal.Failures.failure(Failures.java:74)
at org.fest.assertions.internal.Comparables.assertEqual(Comparables.java:85)
at org.fest.assertions.api.IntegerAssert.isEqualTo(IntegerAssert.java:55)
at org.fest.assertions.api.android.view.AbstractViewAssert.isVisible(AbstractViewAssert.java:691)
at com.fontself.sms.test.MessageActivityTest.testEnterText(MessageActivityTest.java:84)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:204)
at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:194)
at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:186)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448)
When I test the visibility of a ListView with(AbstractAssert.java:43)
at org.fest.assertions.api.android.view.AbstractViewAssert.(AbstractViewAssert.java:27)
at org.fest.assertions.api.android.view.AbstractViewGroupAssert.(AbstractViewGroupAssert.java:18)
at org.fest.assertions.api.android.widget.AbstractAdapterViewAssert.(AbstractAdapterViewAssert.java:13)
at org.fest.assertions.api.android.widget.AbstractAbsListViewAssert.(AbstractAbsListViewAssert.java:10)
at org.fest.assertions.api.android.widget.AbstractListViewAssert.(AbstractListViewAssert.java:12)
at org.fest.assertions.api.android.widget.ListViewAssert.(ListViewAssert.java:13)
at org.fest.assertions.api.ANDROID.assertThat(ANDROID.java:920)
at com.fontself.sms.test.MessageActivityTest.testEnterText(MessageActivityTest.java:84)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:204)
at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:194)
at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:186)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448)
assertThat(mLst).isVisible();
I get a test failure with the following trace! java.lang.VerifyError: org.fest.assertions.internal.Objects at org.fest.assertions.api.AbstractAssert.