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
-
Fields inherited from class org.robolectric.internal.bytecode.Sandbox
classHandler
-
-
Constructor Summary
Constructors Constructor Description AndroidSandbox(Sdk runtimeSdk, Sdk compileSdk, ResourcesMode resourcesMode, ApkLoader apkLoader, AndroidSandbox.TestEnvironmentSpec testEnvironmentSpec, AndroidSandbox.SdkSandboxClassLoader sdkSandboxClassLoader, ShadowProviders shadowProviders)
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
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 Detail
-
mainThreadFactory
protected ThreadFactory mainThreadFactory()
- Overrides:
mainThreadFactory
in classSandbox
-
getSdk
public Sdk getSdk()
-
getTestEnvironment
public TestEnvironment getTestEnvironment()
-
-