Class TestComponentData
java.lang.Object
dagger.hilt.android.internal.testing.TestComponentData
Contains the data needed to create a test's component.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceReturns the component using the given registered modules. -
Constructor Summary
ConstructorsConstructorDescriptionTestComponentData(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 ofdaggerRequiredModulesthat filters out the modules Hilt can instantiate itself.Returns theTestInjector.booleanReturns 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 ofdaggerRequiredModulesthat 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.
-