Package org.robolectric.android.internal
Class AndroidTestEnvironment
java.lang.Object
org.robolectric.android.internal.AndroidTestEnvironment
- All Implemented Interfaces:
TestEnvironment
-
Constructor Summary
ConstructorDescriptionAndroidTestEnvironment
(Sdk runtimeSdk, Sdk compileSdk, ResourcesMode resourcesMode, ApkLoader apkLoader, ShadowProvider[] shadowProviders, TestEnvironmentLifecyclePlugin[] lifecyclePlugins) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
setUpApplicationState
(Method method, ConfigurationStrategy.Configuration configuration, AndroidManifest appManifest) void
-
Constructor Details
-
AndroidTestEnvironment
public AndroidTestEnvironment(@Named("runtimeSdk") Sdk runtimeSdk, @Named("compileSdk") Sdk compileSdk, ResourcesMode resourcesMode, ApkLoader apkLoader, ShadowProvider[] shadowProviders, TestEnvironmentLifecyclePlugin[] lifecyclePlugins)
-
-
Method Details
-
setUpApplicationState
public void setUpApplicationState(Method method, ConfigurationStrategy.Configuration configuration, AndroidManifest appManifest) - Specified by:
setUpApplicationState
in interfaceTestEnvironment
-
tearDownApplication
public void tearDownApplication()- Specified by:
tearDownApplication
in interfaceTestEnvironment
-
checkStateAfterTestFailure
- Specified by:
checkStateAfterTestFailure
in interfaceTestEnvironment
- Throws:
Throwable
-
resetState
public void resetState()- Specified by:
resetState
in interfaceTestEnvironment
-