Class TestComponentData
- java.lang.Object
-
- dagger.hilt.android.internal.testing.TestComponentData
-
public final class TestComponentData extends java.lang.ObjectContains the data needed to create a test's component.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTestComponentData.ComponentSupplierReturns the component using the given registered modules.
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestComponentData.ComponentSuppliercomponentSupplier()Returns theTestComponentData.ComponentSupplier.java.util.Set<java.lang.Class<?>>daggerRequiredModules()Returns the set of modules that Dagger cannot create instances of itselfjava.util.Set<java.lang.Class<?>>hiltRequiredModules()Returns a subset ofdaggerRequiredModulesthat filters out the modules Hilt can instantiate itself.TestInjector<java.lang.Object>testInjector()Returns theTestInjector.booleanwaitForBindValue()Returns true if creation of the component needs to wait for bind() to be called.
-
-
-
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
-
componentSupplier
public TestComponentData.ComponentSupplier componentSupplier()
Returns theTestComponentData.ComponentSupplier.
-
testInjector
public TestInjector<java.lang.Object> testInjector()
Returns theTestInjector.
-
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 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.
-
-