2013年11月10日 星期日

how to get context when doing unit testing in android app

use androidTestCase, ApplicationTestCase or ServiceTestCase

see this:
http://stackoverflow.com/questions/2095695/android-unit-tests-requiring-context
http://stackoverflow.com/questions/6011472/android-how-to-get-context-when-testing-with-activityinstrumentationtestcase2

沒有留言:

張貼留言