Class AutoCloseAnnotationUtils
java.lang.Object
org.antublue.test.engine.internal.AutoCloseAnnotationUtils
Class to process @TestEngine.AutoClose annotations
-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessAutoCloseAnnotatedFields(Object object, String lifecycle, Consumer<Throwable> throwableConsumer) Method to process @TestEngine.AutoClose annotated fields for a specific scopestatic AutoCloseAnnotationUtilsMethod to get the singleton instance
-
Method Details
-
singleton
Method to get the singleton instance- Returns:
- the singleton instance
-
processAutoCloseAnnotatedFields
public void processAutoCloseAnnotatedFields(Object object, String lifecycle, Consumer<Throwable> throwableConsumer) Method to process @TestEngine.AutoClose annotated fields for a specific scope- Parameters:
object- objectlifecycle- lifecyclethrowableConsumer- throwableConsumer
-