public Activity waitForNextActivity(String methodExt, long timeOut) throws InterruptedException { Activity nextActivity = mInstrumentation.waitForMonitorWithTimeout(activityMonitor, timeOut); MyLog.v(methodExt, "After waitForMonitor: " + nextActivity); assertNotNull("Next activity is opened and captured", nextActivity); TestSuite.waitForListLoaded(mInstrumentation, nextActivity, 2); activityMonitor = null; return nextActivity; }
private void oneIteration() throws InterruptedException { TestSuite.waitForListLoaded(this, activity, 3); }