Package org.robolectric.internal
Class AndroidSandbox
java.lang.Object
org.robolectric.internal.bytecode.Sandbox
org.robolectric.internal.AndroidSandbox
public class AndroidSandbox extends Sandbox
Sandbox simulating an Android device.
-
Nested Class Summary
Nested Classes 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. -
Field Summary
-
Constructor Summary
Constructors Constructor Description AndroidSandbox(Sdk runtimeSdk, Sdk compileSdk, ResourcesMode resourcesMode, ApkLoader apkLoader, AndroidSandbox.TestEnvironmentSpec testEnvironmentSpec, AndroidSandbox.SdkSandboxClassLoader sdkSandboxClassLoader, ShadowProviders shadowProviders)
-
Method Summary
Modifier and Type Method Description Sdk
getSdk()
TestEnvironment
getTestEnvironment()
protected ThreadFactory
mainThreadFactory()
String
toString()
Methods inherited from class org.robolectric.internal.bytecode.Sandbox
bootstrappedClass, configure, getRobolectricClassLoader, replaceShadowMap, runOnMainThread, runOnMainThread
-
Constructor Details
-
AndroidSandbox
@Inject public AndroidSandbox(@Named("runtimeSdk") Sdk runtimeSdk, @Named("compileSdk") Sdk compileSdk, ResourcesMode resourcesMode, ApkLoader apkLoader, AndroidSandbox.TestEnvironmentSpec testEnvironmentSpec, AndroidSandbox.SdkSandboxClassLoader sdkSandboxClassLoader, ShadowProviders shadowProviders)
-
-
Method Details
-
mainThreadFactory
- Overrides:
mainThreadFactory
in classSandbox
-
getSdk
-
getTestEnvironment
-
toString
-