Class Sandbox

java.lang.Object
org.robolectric.internal.bytecode.Sandbox
Direct Known Subclasses:
AndroidSandbox

public class Sandbox extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • mainThreadFactory

      protected ThreadFactory mainThreadFactory()
    • bootstrappedClass

      public <T> Class<T> bootstrappedClass(Class<?> clazz)
    • getRobolectricClassLoader

      public ClassLoader getRobolectricClassLoader()
    • replaceShadowMap

      public void replaceShadowMap(ShadowMap shadowMap)
    • getModeInvalidatedClasses

      protected Set<String> getModeInvalidatedClasses()
    • clearModeInvalidatedClasses

      protected void clearModeInvalidatedClasses()
    • configure

      public void configure(ClassHandler classHandler, Interceptors interceptors)
    • runOnMainThread

      public void runOnMainThread(Runnable runnable)
    • shutdown

      public void shutdown()
      Cleans up resources that have been opened by this Sandbox.
    • runOnMainThread

      public <T> T runOnMainThread(Callable<T> callable)