이제 두 번째 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

androidx.test.core.app

Interfaces

ActivityScenario.ActivityAction<A extends Activity> ActivityAction interface should be implemented by any class whose instances are intended to be executed by the main thread. 

Classes

ActivityScenario<A extends Activity> ActivityScenario provides APIs to start and drive an Activity's lifecycle state for testing. 
ApplicationProvider Provides ability to retrieve the current application Context in tests.