Code example for InstrumentationTestCase

Methods: getInstrumentation

0
        test = null;
    } 
 
    public static void setTestCase(InstrumentationTestCase testCase) {
        test = testCase;
        instr = testCase.getInstrumentation();
    } 
 
    public static void sleep(long msec) {
        try { 
            Thread.sleep(msec);
        } 
        catch (InterruptedException e) {
            throw new RuntimeException(e);
        } 
    } 
 
    public static void selectListAndMoveToTop(final ListView list) {
        instr.runOnMainSync(
            new Runnable() {
                public void run() {