Class ComponentController<C extends ComponentController<C,T>,T>

java.lang.Object
org.robolectric.android.controller.ComponentController<C,T>
Direct Known Subclasses:
ActivityController, BackupAgentController, FragmentController, IntentServiceController, ServiceController

public abstract class ComponentController<C extends ComponentController<C,T>,T> extends Object
  • Field Details

    • myself

      protected final C extends ComponentController<C,T> myself
    • component

      protected T component
    • shadowMainLooper

      protected final ShadowLooper shadowMainLooper
    • intent

      protected Intent intent
    • attached

      protected boolean attached
  • Constructor Details

    • ComponentController

      public ComponentController(T component, Intent intent)
    • ComponentController

      public ComponentController(T component)
  • Method Details

    • get

      public T get()
    • create

      public abstract C create()
    • destroy

      public abstract C destroy()
    • getIntent

      public Intent getIntent()
    • invokeWhilePaused

      protected C invokeWhilePaused(String methodName, ReflectionHelpers.ClassParameter<?>... classParameters)
    • invokeWhilePaused

      protected C invokeWhilePaused(Runnable runnable)