Class TestComponentData

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

      • TestComponentData

        public TestComponentData​(boolean waitForBindValue,
                                 TestInjector<java.lang.Object> testInjector,
                                 java.util.Set<java.lang.Class<?>> daggerRequiredModules,
                                 java.util.Set<java.lang.Class<?>> hiltRequiredModules,
                                 TestComponentData.ComponentSupplier componentSupplier)
    • Method Detail

      • daggerRequiredModules

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

        public java.util.Set<java.lang.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.