Package io.qameta.allure.util
Class AnnotationUtils
java.lang.Object
io.qameta.allure.util.AnnotationUtils
Collection of utils used by Allure integration to extract meta information from
test cases via reflection.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<io.qameta.allure.model.Label> getLabels(Annotation... annotations) Shortcut forgetLabels(Collection).static Set<io.qameta.allure.model.Label> getLabels(AnnotatedElement annotatedElement) Returns labels created from Allure meta annotations specified on annotated element.static Set<io.qameta.allure.model.Label> getLabels(Collection<Annotation> annotations) Returns labels from given annotations.static Set<io.qameta.allure.model.Link> getLinks(Annotation... annotations) Shortcut forgetLinks(Collection).static Set<io.qameta.allure.model.Link> getLinks(AnnotatedElement annotatedElement) Returns links created from Allure meta annotations specified on annotated element.static Set<io.qameta.allure.model.Link> getLinks(Collection<Annotation> annotations) Returns links from given annotations.static booleanisFlaky(AnnotatedElement annotatedElement) Returns true ifFlakyannotation is present.static booleanisMuted(AnnotatedElement annotatedElement) Returns true ifMutedannotation is present.
-
Method Details
-
isFlaky
Returns true ifFlakyannotation is present.- Parameters:
annotatedElement- the element to search annotations on.- Returns:
- true if
Flakyannotation is present, false otherwise.
-
isMuted
Returns true ifMutedannotation is present.- Parameters:
annotatedElement- the element to search annotations on.- Returns:
- true if
Mutedannotation is present, false otherwise.
-
getLinks
Returns links created from Allure meta annotations specified on annotated element.- Parameters:
annotatedElement- the element to search annotations on.- Returns:
- discovered links.
-
getLinks
Shortcut forgetLinks(Collection).- Parameters:
annotations- annotations to analyse.- Returns:
- discovered links.
-
getLinks
Returns links from given annotations.- Parameters:
annotations- annotations to analyse.- Returns:
- discovered links.
-
getLabels
Returns labels created from Allure meta annotations specified on annotated element. Shortcut forgetLinks(Annotation...)- Parameters:
annotatedElement- the element to search annotations on.- Returns:
- discovered labels.
-
getLabels
Shortcut forgetLabels(Collection).- Parameters:
annotations- annotations to analyse.- Returns:
- discovered labels.
-
getLabels
Returns labels from given annotations.- Parameters:
annotations- annotations to analyse.- Returns:
- discovered labels.
-