public class AndroidTestEnvironment extends Object implements TestEnvironment
Constructor and Description |
---|
AndroidTestEnvironment(Sdk runtimeSdk,
Sdk compileSdk,
ResourcesMode resourcesMode,
ApkLoader apkLoader,
ShadowProvider[] shadowProviders,
TestEnvironmentLifecyclePlugin[] lifecyclePlugins) |
Modifier and Type | Method and Description |
---|---|
void |
checkStateAfterTestFailure(Throwable t) |
void |
resetState() |
void |
setUpApplicationState(Method method,
ConfigurationStrategy.Configuration configuration,
AndroidManifest appManifest) |
void |
tearDownApplication() |
public AndroidTestEnvironment(@Named(value="runtimeSdk") Sdk runtimeSdk, @Named(value="compileSdk") Sdk compileSdk, ResourcesMode resourcesMode, ApkLoader apkLoader, ShadowProvider[] shadowProviders, TestEnvironmentLifecyclePlugin[] lifecyclePlugins)
public void setUpApplicationState(Method method, ConfigurationStrategy.Configuration configuration, AndroidManifest appManifest)
setUpApplicationState
in interface TestEnvironment
public void tearDownApplication()
tearDownApplication
in interface TestEnvironment
public void checkStateAfterTestFailure(Throwable t) throws Throwable
checkStateAfterTestFailure
in interface TestEnvironment
Throwable
public void resetState()
resetState
in interface TestEnvironment