public class AndroidSandbox extends Sandbox
Sandbox simulating an Android device.
Modifier and Type | Class and Description |
---|---|
static class |
AndroidSandbox.SdkSandboxClassLoader
Adapter from Sdk to ResourceLoader.
|
static class |
AndroidSandbox.TestEnvironmentSpec
Provides a mechanism for tests to inject a different AndroidTestEnvironment.
|
classHandler
Constructor and Description |
---|
AndroidSandbox(Sdk runtimeSdk,
Sdk compileSdk,
ResourcesMode resourcesMode,
ApkLoader apkLoader,
AndroidSandbox.TestEnvironmentSpec testEnvironmentSpec,
AndroidSandbox.SdkSandboxClassLoader sdkSandboxClassLoader,
ShadowProviders shadowProviders) |
Modifier and Type | Method and Description |
---|---|
Sdk |
getSdk() |
TestEnvironment |
getTestEnvironment() |
protected ThreadFactory |
mainThreadFactory() |
String |
toString() |
bootstrappedClass, configure, getRobolectricClassLoader, replaceShadowMap, runOnMainThread, runOnMainThread
@Inject public AndroidSandbox(@Named(value="runtimeSdk") Sdk runtimeSdk, @Named(value="compileSdk") Sdk compileSdk, ResourcesMode resourcesMode, ApkLoader apkLoader, AndroidSandbox.TestEnvironmentSpec testEnvironmentSpec, AndroidSandbox.SdkSandboxClassLoader sdkSandboxClassLoader, ShadowProviders shadowProviders)
protected ThreadFactory mainThreadFactory()
mainThreadFactory
in class Sandbox
public Sdk getSdk()
public TestEnvironment getTestEnvironment()