@Override protected void setUp() throws Exception { super.setUp(); // Espresso does not start the Activity for you we need to do this manually here. mActivity = getActivity(); }
@Override protected void tearDown() throws Exception { super.tearDown(); }
@Override public FeedActivity getActivity() { FeedActivity result = super.getActivity(); mCreatedActivity = true; return result; }
/** * Closes the main chat, by finishing it. * * @param testCase The test that needs to close the main chat. */ public static void closeMainChat(final ActivityInstrumentationTestCase2 testCase) { final Activity activity = testCase.getActivity(); assertEquals(MainChatController.class, activity.getClass()); activity.finish(); }
@Override protected void setUp() throws Exception { super.setUp(); // Espresso does not start the Activity for you we need to do this manually here. mActivity = getActivity(); }
@Override protected void tearDown() throws Exception { super.tearDown(); }
@Override protected void setUp() throws Exception { super.setUp(); // Starts the activity under test using the default Intent with: // action = {@link Intent#ACTION_MAIN} // flags = {@link Intent#FLAG_ACTIVITY_NEW_TASK} // All other fields are null or empty. mTestActivity = getActivity(); }
protected void tearDown() throws Exception { super.tearDown(); synchronized (this) { if (testBlocker != null) { testBlocker.quit(); } } }
@Override protected void setUp() throws Exception { super.setUp(); setActivityInitialTouchMode(true); activity = getActivity(); scrollable = (ObservableListView) activity.findViewById(R.id.scrollable); callbackCounter = new int[2]; }
@After public void tearDown() throws Exception { super.tearDown(); }
@Override protected void setUp() throws Exception { super.setUp(); setActivityInitialTouchMode(true); activity = getActivity(); scrollable = (ObservableRecyclerView) activity.findViewById(R.id.scrollable); }
@After public void tearDown() throws Exception { super.tearDown(); }
@Override protected void setUp() throws Exception { super.setUp(); setActivityInitialTouchMode(true); activity = getActivity(); scrollable = (ObservableWebView) activity.findViewById(R.id.scrollable); callbackCounter = new int[2]; }
@After public void tearDown() throws Exception { super.tearDown(); }
@Override protected void setUp() throws Exception { super.setUp(); setActivityInitialTouchMode(true); activity = getActivity(); scrollable = (ObservableScrollView) activity.findViewById(R.id.scrollable); callbackCounter = new int[2]; }
@After public void tearDown() throws Exception { super.tearDown(); }
@Override protected void setUp() throws Exception { super.setUp(); setActivityInitialTouchMode(true); activity = getActivity(); scrollable = (ObservableGridView) activity.findViewById(R.id.scrollable); }
@After public void tearDown() throws Exception { super.tearDown(); }
@Override protected void setUp() throws Exception { super.setUp(); setActivityInitialTouchMode(true); activity = getActivity(); scrollable = (ObservableListView) activity.findViewById(R.id.scrollable); }
@Override public void tearDown() throws Exception { super.tearDown(); }