Eclipse provides you with constructor templates, for example:
public Testprogdi(String pkg, Class<progdi> activityClass) { super(pkg, activityClass);
or
public Testprogdi(Class<progdi> activityClass) { super(activityClass);
progdi is the name of your activity class. But as the textbook says, the constructor should be something like this:
public Testprogdi() { super("com.progdi", progdi.class);
and you forgot the parameter here:
public class Testprogdi extends ActivityInstrumentationTestCase2<progdi> {}
source share