Class AnnotationConsumerInitializer
- java.lang.Object
-
- de.rwth.swc.coffee4j.junit.engine.annotation.AnnotationConsumerInitializer
-
public class AnnotationConsumerInitializer extends Object
Support class for initializing instances with annotations of an annotated element ininitialize(AnnotatedElement, Object)This is more or less a copy of
org.junit.jupiter.params.support.AnnotationConsumerInitializerfrom the junit-jupiter-params project.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Tinitialize(AnnotatedElement annotatedElement, T instance)Initializes an instance with an annotation set on an element
-
-
-
Method Detail
-
initialize
public static <T> T initialize(AnnotatedElement annotatedElement, T instance)
Initializes an instance with an annotation set on an element- Type Parameters:
T- the type of theAnnotationConsumer- Parameters:
annotatedElement- the element which is annotated with an annotation required by theAnnotationConsumer. Should be annotated with the annotation required by theAnnotationConsumerinstance- an instance of anAnnotationConsumer- Returns:
- the instance of the
AnnotationConsumerinitialized with the required annotation
-
-