Index
All Classes and Interfaces|All Packages
A
- addListener(Context, Class<T>, OnComponentReadyRunner.OnComponentReadyListener<T>) - Static method in class dagger.hilt.android.testing.OnComponentReadyRunner
-
Must be called on the test thread, before the Statement is evaluated.
- apply(Statement, Description) - Method in class dagger.hilt.android.testing.HiltAndroidRule
B
- BindElementsIntoSet - Annotation Interface in dagger.hilt.android.testing
-
An annotation that can be used on a test field to contribute the value into the
SingletonComponentas anElementsIntoSetfor the given type. - BindValue - Annotation Interface in dagger.hilt.android.testing
-
An annotation that can be used on a test field to contribute the value into the
SingletonComponent. - BindValueIntoMap - Annotation Interface in dagger.hilt.android.testing
-
An annotation that can be used on a test field to contribute the value into the
SingletonComponentas anIntoMapfor the given type. - BindValueIntoSet - Annotation Interface in dagger.hilt.android.testing
-
An annotation that can be used on a test field to contribute the value into the
SingletonComponentas anIntoSetfor the given type.
C
- componentManager() - Method in class dagger.hilt.android.testing.HiltTestApplication
- componentReady() - Method in class dagger.hilt.android.testing.HiltAndroidRule
-
Completes Dagger component creation if
HiltAndroidRule.delayComponentReady()was used. - CustomTestApplication - Annotation Interface in dagger.hilt.android.testing
-
An annotation that creates an application with the given base type that can be used for any test in the given build.
D
- dagger.hilt.android.testing - package dagger.hilt.android.testing
-
This package contains APIs for writing Android local or instrumentation tests with Hilt.
- delayComponentReady() - Method in class dagger.hilt.android.testing.HiltAndroidRule
-
Delays creating the component until
HiltAndroidRule.componentReady()is called.
G
- generatedComponent() - Method in class dagger.hilt.android.testing.HiltTestApplication
- getOnComponentReadyRunner() - Method in interface dagger.hilt.android.testing.OnComponentReadyRunner.OnComponentReadyRunnerHolder
H
- HiltAndroidRule - Class in dagger.hilt.android.testing
-
A
TestRulefor Hilt that can be used with JVM or Instrumentation tests. - HiltAndroidRule(Object) - Constructor for class dagger.hilt.android.testing.HiltAndroidRule
-
Creates a new instance of the rules.
- HiltAndroidTest - Annotation Interface in dagger.hilt.android.testing
-
Annotation used for marking an Android emulator tests that require injection.
- HiltTestApplication - Class in dagger.hilt.android.testing
-
An application that can be used for Android instrumentation or Robolectric tests using Hilt.
- HiltTestApplication() - Constructor for class dagger.hilt.android.testing.HiltTestApplication
I
- inject() - Method in class dagger.hilt.android.testing.HiltAndroidRule
-
Completes Dagger injection.
- isEmpty() - Method in class dagger.hilt.android.testing.OnComponentReadyRunner
O
- onComponentReady(T) - Method in interface dagger.hilt.android.testing.OnComponentReadyRunner.OnComponentReadyListener
- OnComponentReadyRunner - Class in dagger.hilt.android.testing
-
Provides access to the Singleton component in tests, so that Rules can access it after custom test modules have been added.
- OnComponentReadyRunner() - Constructor for class dagger.hilt.android.testing.OnComponentReadyRunner
- OnComponentReadyRunner.OnComponentReadyListener<T> - Interface in dagger.hilt.android.testing
-
Rules should register an implementation of this to get access to the singleton component
- OnComponentReadyRunner.OnComponentReadyRunnerHolder - Interface in dagger.hilt.android.testing
-
Public for use by generated code and
TestApplicationComponentManager
S
- setComponentManager(GeneratedComponentManager<?>) - Method in class dagger.hilt.android.testing.OnComponentReadyRunner
-
Used by generated code, to notify listeners that the component has been created.
- SkipTestInjection - Annotation Interface in dagger.hilt.android.testing
-
Annotation used for skipping test injection in a Hilt Android Test.
U
- UninstallModules - Annotation Interface in dagger.hilt.android.testing
-
An annotation used to uninstall modules that have previously been installed with
InstallIn.
V
- value() - Element in annotation interface dagger.hilt.android.testing.CustomTestApplication
-
Returns the base
Applicationclass. - value() - Element in annotation interface dagger.hilt.android.testing.UninstallModules
-
Returns the list of classes to uninstall.
All Classes and Interfaces|All Packages