Class OnComponentReadyRunner

  • public final class OnComponentReadyRunner
    extends java.lang.Object
    Provides access to the Singleton component in tests, so that Rules can access it after custom test modules have been added.
    • Constructor Detail

      • OnComponentReadyRunner

        public OnComponentReadyRunner()
    • Method Detail

      • setComponentManager

        public void setComponentManager​(dagger.hilt.internal.GeneratedComponentManager<?> componentManager)
        Used by generated code, to notify listeners that the component has been created.
      • addListener

        public static <T> void addListener​(android.content.Context context,
                                           java.lang.Class<T> entryPoint,
                                           OnComponentReadyRunner.OnComponentReadyListener<T> listener)
        Must be called on the test thread, before the Statement is evaluated.
      • isEmpty

        public boolean isEmpty()