android-test/ActivityScenario.java at master - GitHub
文章推薦指數: 80 %
destroy(); // Moves the activity state to State.DESTROYED. *. * After: * try(ActivityScenario
延伸文章資訊
- 1Java Code Examples for androidx.test.core.app.ActivityScenario
... try (ActivityScenario<MainActivity> ignored = ActivityScenario.launch(MainActivity.class)) { ...
- 2Better tests with AndroidX's ActivityScenario in Kotlin — Part 1 ...
ActivityScenario provides APIs to start and drive an Activity's lifecycle state for testing. It w...
- 3Test your app's activities | Android Developers
ActivityScenario is a cross-platform API that you can use in local unit tests and on-device inte...
- 4androidx.test.core.app.ActivityScenario.onActivity java code ...
Use {@link ActivityScenario to launch and get access to the activity. * {@link ActivityScenario#o...
- 5Java Code Examples for androidx.test.core.app.ActivityScenario
... try (ActivityScenario<MainActivity> ignored = ActivityScenario.launch(MainActivity.class)) {...