?????????? IdlingResource ?? bug
????????? UI ????????????????????????????£???????? App ???е???????[main??5??main]??????????? UI ?????????????[Instr: android.support.test.runner.AndroidJUnitRunner??5??main]?????????????UI????????? App ???????????е?????????????? App ????????????Щ????????л??????????????????????????
mActivityTestRule.getActivity().runOnUiThread
(new Runnable() {
@Override
public void run() {
LogUtils.d(TAG?? "runOnUiThread..." +
Thread.currentThread());
TaskApi.Companion.getMyTasks(0?? 10000?? ""??
new HSAPICallback
<TaskListResult>() {
public void onRequestSuccess(TaskListResult data??
int httpStatus??
Boolean fromCache) {
super.onRequestSuccess(data?? httpStatus?? fromCache);
mTasks = data.getDatas();
}
});
}
});
????????????????е?????????ú? App ??????е????????????????????? IdlingResource ??????????????????????????????????????? IdlingResource ?????????????????????????????л?????????? ResourceCallback??
????hasProperty ??
????Espresso ????? Hamcrest ?????????е?????????????????????? Hamcrest ??д?????????????????? hasProperty ???????????????????????????????????????? Android SDK ???沢??????? JDK ?????????????????? Android SDK ??С?
java.lang.NoClassDefFoundError:
Failed resolution of: Ljava/beans/Introspector;
at org.hamcrest.beans.PropertyUtil.propertyDescriptorsFor
(PropertyUtil.java:47)
at org.hamcrest.beans.PropertyUtil.getPropertyDescriptor
(PropertyUtil.java:28)
at org.hamcrest.beans.HasPropertyWithValue.propertyOn
(HasPropertyWithValue.java:94)
at org.hamcrest.beans.HasPropertyWithValue.matchesSafely
(HasPropertyWithValue.java:81)
at org.hamcrest.TypeSafeDiagnosingMatcher.matches(
TypeSafeDiagnosingMatcher.java:55)
at org.hamcrest.core.AllOf.matches(AllOf.java:27)
at org.hamcrest.DiagnosingMatcher.matches
(DiagnosingMatcher.java:12)
at android.support.test.espresso.action.
AdapterDataLoaderAction.
perform(AdapterDataLoaderAction.java:83)
at android.support.test.espresso.ViewInteraction$1.run
(ViewInteraction.java:144)
at java.util.concurrent.Executors$RunnableAdapter.
call(Executors.java:422)
at java.util.concurrent.FutureTask.
run(FutureTask.java:237)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
???????? Android espresso onData error
????????????????????????????????????????????Ч?????????????? gradle ?? Android ?????????汾??????????? Java Core ??????????в??????????? 2.2.3 ??汾??????????????????????????????????????????????????????????????? Match ??????????????