Testing package's classes with JUnit
I'm developing an Android application.
I h开发者_StackOverflow中文版ave a package to access SQLite3. It isn't a ContentProvider. How can I test the package's classes using JUnit?
Thanks.
There is a fairly extensive set of documentation online for the Android test framework. In addition to testing your activities and such using dedicated test classes, you are also welcome to have simple TestCase
classes that exercise other classes in your Android app.
精彩评论