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