AndroidSandbox
public class Sandbox extends Object
Modifier and Type | Field | Description |
---|---|---|
ClassHandler |
classHandler |
Constructor | Description |
---|---|
Sandbox(InstrumentationConfiguration config,
ResourceProvider resourceProvider,
ClassInstrumentor classInstrumentor) |
|
Sandbox(SandboxClassLoader sandboxClassLoader) |
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) |
public ClassHandler classHandler
public Sandbox(InstrumentationConfiguration config, ResourceProvider resourceProvider, ClassInstrumentor classInstrumentor)
@Inject public Sandbox(SandboxClassLoader sandboxClassLoader)
protected ThreadFactory mainThreadFactory()
public ClassLoader getRobolectricClassLoader()
public void replaceShadowMap(ShadowMap shadowMap)
public void configure(ClassHandler classHandler, Interceptors interceptors)
public void runOnMainThread(Runnable runnable)
public <T> T runOnMainThread(Callable<T> callable)