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
沒有留言:
張貼留言