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 classReturnstrueif the field is annotated with the supplied annotation.static classReturnstrueif the field is annotated with the supplied annotation and can also be assigned to the supplied type.static classReturnstrueif the field can be assigned to the supplied type. -
Method Summary
Modifier and TypeMethodDescriptionvoidinjectIntoFields(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
-