@Test public void testFeaturesLabelsGetter() throws Exception { List<Label> labels = annotationManager.getFeatureLabels(); assertThat(labels, hasSize(1)); assertEquals(labels.get(0), createLabel(LabelName.FEATURE, "some.feature")); }
public List<Label> getFeatureLabels() { if (!isAnnotationPresent(Features.class)) { return Collections.emptyList(); } List<Label> result = new ArrayList<>(); for (String feature : getAnnotation(Features.class).value()) { result.add(createFeatureLabel(feature)); } return result; }
AnnotationManager { public List<Label> getFeatureLabels() { if (!isAnnotationPresent(Features.class)) { return Collections.emptyList(); } List<Label> result = new ArrayList<>(); for (String feature : getAnnotation(Features.class).value()) { result.add(createFeatureLabel(feature)); } return result; } }
AnnotationManager { public List<Label> getFeatureLabels() { if (!isAnnotationPresent(Features.class)) { return Collections.emptyList(); } List<Label> result = new ArrayList<>(); for (String feature : getAnnotation(Features.class).value()) { result.add(createFeatureLabel(feature)); } return result; } AnnotationManager(Collection<Annotation> annotations);  AnnotationManager(Annotation... annotations); }
AnnotationManager { public List<Label> getFeatureLabels() { if (!isAnnotationPresent(Features.class)) { return Collections.emptyList(); } List<Label> result = new ArrayList<>(); for (String feature : getAnnotation(Features.class).value()) { result.add(createFeatureLabel(feature)); } return result; } AnnotationManager(Collection<Annotation> annotations);  AnnotationManager(Annotation... annotations); void setDefaults(Annotation[] defaultAnnotations); void update(TestSuiteStartedEvent event); void update(TestCaseStartedEvent event); static TestCaseStartedEvent withExecutorInfo(TestCaseStartedEvent event); boolean isTitleAnnotationPresent(); boolean isDescriptionAnnotationPresent(); boolean isSeverityAnnotationPresent(); boolean isStoriesAnnotationPresent(); boolean isFeaturesAnnotationPresent(); boolean isIssuesAnnotationPresent(); boolean isIssueAnnotationPresent(); boolean isTestCaseIdAnnotationPresent(); String getTitle(); ru.yandex.qatools.allure.model.Description getDescription(); SeverityLevel getSeverity(); String getIssueKey(); List<Label> getStoryLabels(); List<Label> getFeatureLabels(); String[] getIssueKeys(); boolean isAnnotationPresent(Class<T> annotationType); T getAnnotation(Class<T> annotationType); }
AnnotationManager { public List<Label> getFeatureLabels() { if (!isAnnotationPresent(Features.class)) { return Collections.emptyList(); } List<Label> result = new ArrayList<>(); for (String feature : getAnnotation(Features.class).value()) { result.add(createFeatureLabel(feature)); } return result; } AnnotationManager(Collection<Annotation> annotations);  AnnotationManager(Annotation... annotations); void setDefaults(Annotation[] defaultAnnotations); void update(TestSuiteStartedEvent event); void update(TestCaseStartedEvent event); static TestCaseStartedEvent withExecutorInfo(TestCaseStartedEvent event); boolean isTitleAnnotationPresent(); boolean isDescriptionAnnotationPresent(); boolean isSeverityAnnotationPresent(); boolean isStoriesAnnotationPresent(); boolean isFeaturesAnnotationPresent(); boolean isIssuesAnnotationPresent(); boolean isIssueAnnotationPresent(); boolean isTestCaseIdAnnotationPresent(); String getTitle(); ru.yandex.qatools.allure.model.Description getDescription(); SeverityLevel getSeverity(); String getIssueKey(); List<Label> getStoryLabels(); List<Label> getFeatureLabels(); String[] getIssueKeys(); boolean isAnnotationPresent(Class<T> annotationType); T getAnnotation(Class<T> annotationType);  }