Package io.quarkus.test.common
Interface QuarkusTestResourceLifecycleManager.TestInjector
- All Known Implementing Classes:
TestResourceManager.DefaultTestInjector
- Enclosing interface:
- QuarkusTestResourceLifecycleManager
public static interface QuarkusTestResourceLifecycleManager.TestInjector
Provides methods to handle the common injection cases. See
QuarkusTestResourceLifecycleManager.inject(TestInjector)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Returnstrue
if the field is annotated with the supplied annotation.static class
Returnstrue
if the field is annotated with the supplied annotation and can also be assigned to the supplied type.static class
Returnstrue
if the field can be assigned to the supplied type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
injectIntoFields
(Object fieldValue, Predicate<Field> predicate)
-
Method Details
-
injectIntoFields
- Parameters:
fieldValue
- The actual value to inject into a test fieldpredicate
- User supplied predicate which can be used to determine whether or not the field should be set with withfieldValue
-