Class TestComponentData

java.lang.Object
dagger.hilt.android.internal.testing.TestComponentData

public final class TestComponentData extends Object
Contains the data needed to create a test's component.
  • Constructor Details

  • Method Details

    • componentSupplier

      public TestComponentData.ComponentSupplier componentSupplier()
    • testInjector

      public TestInjector<Object> testInjector()
      Returns the TestInjector.
    • daggerRequiredModules

      public Set<Class<?>> daggerRequiredModules()
      Returns the set of modules that Dagger cannot create instances of itself
    • hiltRequiredModules

      public Set<Class<?>> hiltRequiredModules()
      Returns a subset of daggerRequiredModules that filters out the modules Hilt can instantiate itself.
    • waitForBindValue

      public boolean waitForBindValue()
      Returns true if creation of the component needs to wait for bind() to be called.