Testing non-activity classes in Android -


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:

  1. create test project
  2. create test case
  3. 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