public class AndroidSandbox extends Sandbox
Modifier and Type | Class | 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 | Description |
---|---|
AndroidSandbox(Sdk runtimeSdk,
Sdk compileSdk,
ResourcesMode resourcesMode,
ApkLoader apkLoader,
AndroidSandbox.TestEnvironmentSpec testEnvironmentSpec,
AndroidSandbox.SdkSandboxClassLoader sdkSandboxClassLoader,
ShadowProviders shadowProviders) |
Modifier and Type | Method | Description |
---|---|---|
Sdk |
getSdk() |
|
TestEnvironment |
getTestEnvironment() |
|
protected ThreadFactory |
mainThreadFactory() |
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bootstrappedClass, configure, getRobolectricClassLoader, replaceShadowMap, runOnMainThread, runOnMainThread
@Inject public AndroidSandbox(@Named("runtimeSdk") Sdk runtimeSdk, @Named("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()