Package org.robolectric.internal
Class AndroidSandbox
java.lang.Object
org.robolectric.internal.bytecode.Sandbox
org.robolectric.internal.AndroidSandbox
Sandbox simulating an Android device.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Adapter from Sdk to ResourceLoader.static class
Provides a mechanism for tests to inject a different AndroidTestEnvironment. -
Field Summary
Fields inherited from class org.robolectric.internal.bytecode.Sandbox
classHandler
-
Constructor Summary
ConstructorDescriptionAndroidSandbox
(Sdk runtimeSdk, Sdk compileSdk, ResourcesMode resourcesMode, ApkLoader apkLoader, AndroidSandbox.TestEnvironmentSpec testEnvironmentSpec, AndroidSandbox.SdkSandboxClassLoader sdkSandboxClassLoader, ShadowProviders shadowProviders, SQLiteMode.Mode sqLiteMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
getSdk()
protected ThreadFactory
toString()
void
updateModes
(SQLiteMode.Mode sqliteMode) Methods inherited from class org.robolectric.internal.bytecode.Sandbox
bootstrappedClass, configure, getRobolectricClassLoader, replaceShadowMap, runOnMainThread, runOnMainThread, shutdown
-
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, SQLiteMode.Mode sqLiteMode)
-
-
Method Details
-
mainThreadFactory
- Overrides:
mainThreadFactory
in classSandbox
-
getModeInvalidatedClasses
- Overrides:
getModeInvalidatedClasses
in classSandbox
-
clearModeInvalidatedClasses
protected void clearModeInvalidatedClasses()- Overrides:
clearModeInvalidatedClasses
in classSandbox
-
getSdk
-
getTestEnvironment
-
toString
-
updateModes
-