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
延伸文章資訊
- 1androidx.test.core.app.ActivityScenario.launch java code ...
public ActivityController(Class clazz) { scenario = ActivityScenario.launch(clazz);
- 2Source Code for ActivityScenario.java - AndroidX Tech
It * works with arbitrary activities and works consistently across different versions of the Andr...
- 3Source Code for ActivityScenario.java - AndroidX Tech
It * works with arbitrary activities and works consistently across different versions of the Andr...
- 4androidx.test.core.app.ActivityScenario.onActivity java code ...
Use {@link ActivityScenario to launch and get access to the activity. * {@link ActivityScenario#o...
- 5ActivityScenario.ActivityAction | Android 开发者 | Android ...
Example: ActivityScenario<MyActivity> scenario = ActivityScenario.launch(MyActivity.class); scena...