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, ShadowProvider[] shadowProviders, TestEnvironmentLifecyclePlugin[] lifecyclePlugins) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected Instrumentation
void
void
setUpApplicationState
(String tmpDirName, ConfigurationStrategy.Configuration configuration, AndroidManifest appManifest) void
-
Constructor Details
-
AndroidTestEnvironment
public AndroidTestEnvironment(@Named("runtimeSdk") Sdk runtimeSdk, @Named("compileSdk") Sdk compileSdk, ShadowProvider[] shadowProviders, TestEnvironmentLifecyclePlugin[] lifecyclePlugins)
-
-
Method Details
-
setUpApplicationState
public void setUpApplicationState(String tmpDirName, ConfigurationStrategy.Configuration configuration, AndroidManifest appManifest) - Specified by:
setUpApplicationState
in interfaceTestEnvironment
-
pickInstrumentation
-
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
-