Class TestComponentData
java.lang.Object
dagger.hilt.android.internal.testing.TestComponentData
Contains the data needed to create a test's component.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Returns the component using the given registered modules. -
Constructor Summary
ConstructorDescriptionTestComponentData
(boolean waitForBindValue, TestInjector<Object> testInjector, Set<Class<?>> daggerRequiredModules, Set<Class<?>> hiltRequiredModules, TestComponentData.ComponentSupplier componentSupplier) -
Method Summary
Modifier and TypeMethodDescriptionReturns theTestComponentData.ComponentSupplier
.Returns the set of modules that Dagger cannot create instances of itselfReturns a subset ofdaggerRequiredModules
that filters out the modules Hilt can instantiate itself.Returns theTestInjector
.boolean
Returns true if creation of the component needs to wait for bind() to be called.
-
Constructor Details
-
TestComponentData
public TestComponentData(boolean waitForBindValue, TestInjector<Object> testInjector, Set<Class<?>> daggerRequiredModules, Set<Class<?>> hiltRequiredModules, TestComponentData.ComponentSupplier componentSupplier)
-
-
Method Details
-
componentSupplier
Returns theTestComponentData.ComponentSupplier
. -
testInjector
Returns theTestInjector
. -
daggerRequiredModules
Returns the set of modules that Dagger cannot create instances of itself -
hiltRequiredModules
Returns a subset ofdaggerRequiredModules
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.
-