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, SQLiteMode.Mode sqLiteMode)
-
Method Summary
Modifier and Type Method Description protected void
clearModeInvalidatedClasses()
protected Set<String>
getModeInvalidatedClasses()
Sdk
getSdk()
TestEnvironment
getTestEnvironment()
protected ThreadFactory
mainThreadFactory()
String
toString()
void
updateModes(SQLiteMode.Mode sqliteMode)
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, 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
-