Better tests with AndroidX's ActivityScenario in Kotlin — Part 1 ...
文章推薦指數: 80 %
ActivityScenario provides APIs to start and drive an Activity's lifecycle state for testing. It works with arbitrary activities and works consistently ... BettertestswithAndroidX’sActivityScenarioinKotlin—Part1PiotrZawadzkiFollowJun11,2019·3minreadWiththeriseofAndroidXTestlibr
延伸文章資訊
- 1ActivityScenario.ActivityAction | Android 开发者 | Android ...
Example: ActivityScenario<MyActivity> scenario = ActivityScenario.launch(MyActivity.class); scena...
- 2androidx.test.core.app.ActivityScenario.launch java code ...
public ActivityController(Class clazz) { scenario = ActivityScenario.launch(clazz);
- 3Better 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...
- 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)) {...