草庐IT

testAndroidTestCaseSetupProperly

全部标签

android - testAndroidTestCaseSetUpProperly 是做什么的

我知道在Android中,经常会在测试用例中添加额外的测试testAndroidTestCaseSetUpProperly(不确定是否一直发生)。虽然以前我从来不需要给它太多,但在分析一些使用ContentProvider的测试时,我注意到一些奇怪的事情。当我在我的ContentProvider中添加以下日志时:static{Log.d("UKMPG","InitialisingURIMatcher");uriMatcher=newUriMatcher(UriMatcher.NO_MATCH);//adduris}@OverridepublicbooleanonCreate(){Log