Class Sandbox
java.lang.Object
org.robolectric.internal.bytecode.Sandbox
- Direct Known Subclasses:
AndroidSandbox
public class Sandbox extends Object
-
Field Summary
Fields Modifier and Type Field Description ClassHandler
classHandler
-
Constructor Summary
Constructors Constructor Description Sandbox(InstrumentationConfiguration config, ResourceProvider resourceProvider, ClassInstrumentor classInstrumentor)
Sandbox(SandboxClassLoader sandboxClassLoader)
-
Method Summary
Modifier and Type Method Description <T> Class<T>
bootstrappedClass(Class<?> clazz)
void
configure(ClassHandler classHandler, Interceptors interceptors)
ClassLoader
getRobolectricClassLoader()
protected ThreadFactory
mainThreadFactory()
void
replaceShadowMap(ShadowMap shadowMap)
void
runOnMainThread(Runnable runnable)
<T> T
runOnMainThread(Callable<T> callable)
-
Field Details
-
Constructor Details
-
Sandbox
public Sandbox(InstrumentationConfiguration config, ResourceProvider resourceProvider, ClassInstrumentor classInstrumentor) -
Sandbox
-
-
Method Details