i know how test activity classes junit 4 in android unable understand how test non-activity classes (which don't extends activity, listactivity, or other activity class, uses android apis). please me in regard.
to test non activity classes:
- create test project
- create test case
run android junit test
public class myclasstests extends testcase { /** * @param name */ public myclasstests(string name) { super(name); } /* (non-javadoc) * @see junit.framework.testcase#setup() */ protected void setup() throws exception { super.setup(); } /* (non-javadoc) * @see junit.framework.testcase#teardown() */ protected void teardown() throws exception { super.teardown(); } /** * test */ public final void testsomething() { fail("not implemented yet"); } }
Comments
Post a Comment