Java Code Examples for androidx.test.espresso.intent.Intents#release()
The following examples show how to use
androidx.test.espresso.intent.Intents#release() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ActivityWithMockingNetworkUITest.java From adamant-android with GNU General Public License v3.0 | 5 votes |
@After public void teardown() throws IOException { InstrumentationTestFacade instrumentationTestFacade = application.getInstrumentationTestFacade(); instrumentationTestFacade.logout(); super.teardown(); Intents.release(); mockWebServer.shutdown(); }
Example 2
Source File: MainActivityTest.java From quickstart-android with Apache License 2.0 | 5 votes |
@After public void after() { // Release intents Intents.release(); // Idling resource if (mUploadIdlingResource != null) { Espresso.unregisterIdlingResources(mUploadIdlingResource); } }
Example 3
Source File: IntentsTestRule.java From android-test with Apache License 2.0 | 5 votes |
@Override protected void afterActivityFinished() { super.afterActivityFinished(); if (isInitialized) { // Otherwise will throw a NPE if Intents.init() wasn't called. Intents.release(); isInitialized = false; } }
Example 4
Source File: AuthenticatorActivityTest.java From google-authenticator-android with Apache License 2.0 | 5 votes |
@After public void tearDown() throws Exception { // Stop the activity to avoid it using the DependencyInjector after it's been closed. TestUtilities.invokeFinishActivityOnUiThread(activityTestRule.getActivity()); DependencyInjector.close(); Intents.release(); }
Example 5
Source File: LoginUITest.java From adamant-android with GNU General Public License v3.0 | 4 votes |
@After public void after() { Intents.release(); activityRule.finishActivity(); }
Example 6
Source File: IntentTest.java From android-test with Apache License 2.0 | 4 votes |
@After public void tearDown() throws Exception { // Releasing clears recorded intents and stubbing, ensuring a clean state for each test. Intents.release(); }
Example 7
Source File: OpenLinkActionTest.java From android-test with Apache License 2.0 | 4 votes |
@After public void tearDown() throws Exception { Intents.release(); }
Example 8
Source File: ChangeTextBehaviorLocalTest.java From testing-samples with Apache License 2.0 | 4 votes |
@After public void intentsTeardown() { // release Espresso Intents capturing Intents.release(); }
Example 9
Source File: SettingsAboutActivityTest.java From google-authenticator-android with Apache License 2.0 | 4 votes |
@After public void tearDown() throws Exception { DependencyInjector.close(); Intents.release(); }
Example 10
Source File: SettingsActivityTest.java From google-authenticator-android with Apache License 2.0 | 4 votes |
@After public void tearDown() throws Exception { DependencyInjector.close(); Intents.release(); }
Example 11
Source File: HowItWorksActivityTest.java From google-authenticator-android with Apache License 2.0 | 4 votes |
@After public void tearDown() throws Exception { DependencyInjector.close(); Intents.release(); }
Example 12
Source File: AddAccountActivityTest.java From google-authenticator-android with Apache License 2.0 | 4 votes |
@After public void tearDown() throws Exception { DependencyInjector.close(); Intents.release(); }