Package org.robolectric.android.internal
Class AndroidTestEnvironment
java.lang.Object
org.robolectric.android.internal.AndroidTestEnvironment
- All Implemented Interfaces:
TestEnvironment
public class AndroidTestEnvironment extends Object implements TestEnvironment
-
Constructor Summary
Constructors Constructor Description AndroidTestEnvironment(Sdk runtimeSdk, Sdk compileSdk, ResourcesMode resourcesMode, ApkLoader apkLoader, ShadowProvider[] shadowProviders, TestEnvironmentLifecyclePlugin[] lifecyclePlugins)
-
Method Summary
Modifier and Type Method Description void
checkStateAfterTestFailure(Throwable t)
void
resetState()
void
setUpApplicationState(Method method, ConfigurationStrategy.Configuration configuration, AndroidManifest appManifest)
void
tearDownApplication()
-
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
-