J-unit Testing - Writing Test Case of a Class which is extended by dialogue or Asynctask?

71 Views Asked by At

I am new to testing phase ,I'd like to write test case of a class which is extended by dialogue or Asynctask ,but i am not able to access the stuff of dialogue class in my test case . rather i have successfully done this with Activity (using ActivityInstrumentationTestCase2). Any help will be more than appreciation. Thanks

1

There are 1 best solutions below

1
On

Your testcase has to extend AndroidTestCase

public class MyTest extends AndroidTestCase{

    public void test(){
       //access dialog here 
    }

}