Package net.serenitybdd.annotations
Class EpicFeatureStoryAnnotations
java.lang.Object
net.serenitybdd.annotations.EpicFeatureStoryAnnotations
-
Method Summary
Modifier and TypeMethodDescriptionReads annotations from the class, its superclass chain, and its enclosing class chain (up to but not including Object).Reads annotations from a method, then from its declaring class chain.tagsFromElement(AnnotatedElement element) Reads @Epic, @Feature (string-valued), and @Story (string-valued) from a single annotated element.
-
Method Details
-
tagsFromElement
Reads @Epic, @Feature (string-valued), and @Story (string-valued) from a single annotated element. Does not walk superclasses or declaring classes — useforClass(java.lang.Class<?>)orforMethod(java.lang.reflect.Method)for that. -
forClass
Reads annotations from the class, its superclass chain, and its enclosing class chain (up to but not including Object). This ensures annotations on outer classes are inherited by JUnit 5@Nestedinner classes. -
forMethod
Reads annotations from a method, then from its declaring class chain.
-