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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkStateAfterTestFailure(Throwable t)
void
resetState()
void
setUpApplicationState(Method method, ConfigurationStrategy.Configuration configuration, AndroidManifest appManifest)
void
tearDownApplication()
-
-
-
Constructor Detail
-
AndroidTestEnvironment
public AndroidTestEnvironment(@Named("runtimeSdk") Sdk runtimeSdk, @Named("compileSdk") Sdk compileSdk, ResourcesMode resourcesMode, ApkLoader apkLoader, ShadowProvider[] shadowProviders, TestEnvironmentLifecyclePlugin[] lifecyclePlugins)
-
-
Method Detail
-
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
public void checkStateAfterTestFailure(Throwable t) throws Throwable
- Specified by:
checkStateAfterTestFailure
in interfaceTestEnvironment
- Throws:
Throwable
-
resetState
public void resetState()
- Specified by:
resetState
in interfaceTestEnvironment
-
-