Package dagger.hilt.android.testing
@ParametersAreNonnullByDefault
package dagger.hilt.android.testing
This package contains APIs for writing Android local or instrumentation tests with Hilt.
- See Also:
-
ClassDescriptionAn annotation that can be used on a test field to contribute the value into the
SingletonComponent
as anElementsIntoSet
for the given type.An annotation that can be used on a test field to contribute the value into theSingletonComponent
.An annotation that can be used on a test field to contribute the value into theSingletonComponent
as anIntoMap
for the given type.An annotation that can be used on a test field to contribute the value into theSingletonComponent
as anIntoSet
for the given type.An annotation that creates an application with the given base type that can be used for any test in the given build.ATestRule
for Hilt that can be used with JVM or Instrumentation tests.Annotation used for marking an Android emulator tests that require injection.An application that can be used for Android instrumentation or Robolectric tests using Hilt.Provides access to the Singleton component in tests, so that Rules can access it after custom test modules have been added.Rules should register an implementation of this to get access to the singleton componentPublic for use by generated code andinvalid @link
TestApplicationComponentManager
Annotation used for skipping test injection in a Hilt Android Test.An annotation used to uninstall modules that have previously been installed withInstallIn
.