public String getAnnotatedTitle() { Method testMethod = getTestMethod(); Title title = testMethod.getAnnotation(Title.class); if (title != null) { return title.value(); } return null; }
private Optional<String> getAnnotatedStepName() { Optional<String> stepAnnotatedName = getNameFromStepAnnotationIn(getTestMethod()); if (stepAnnotatedName.isPresent()) { return stepAnnotatedName; } else { return getCompatibleStepNameFrom(getTestMethod()); } }
private Optional<String> getAnnotatedStepName() { Optional<String> stepAnnotatedName = getNameFromStepAnnotationIn(getTestMethod()); if (stepAnnotatedName.isPresent()) { return stepAnnotatedName; } else { return getCompatibleStepNameFrom(getTestMethod()); } }
public String getAnnotatedTitle() { Method testMethod = getTestMethod(); Title title = testMethod.getAnnotation(Title.class); if (title != null) { return title.value(); } return null; }
public String getAnnotatedTitle() { Method testMethod = getTestMethod(); Title title = testMethod.getAnnotation(Title.class); if (title != null) { return title.value(); } return null; }
private Optional<String> getAnnotatedStepName() { Optional<String> stepAnnotatedName = getNameFromStepAnnotationIn(getTestMethod()); if (stepAnnotatedName.isPresent()) { return stepAnnotatedName; } else { return getCompatibleStepNameFrom(getTestMethod()); } }
public List<String> getAnnotatedRequirements() { List<String> requirements = new ArrayList<String>(); Method testMethod = getTestMethod(); if (testMethod != null) { addRequirementFrom(requirements, testMethod); addMultipleRequirementsFrom(requirements, testMethod); } return requirements; }
public List<String> getAnnotatedRequirements() { List<String> requirements = new ArrayList<>(); Method testMethod = getTestMethod(); if (testMethod != null) { addRequirementFrom(requirements, testMethod); addMultipleRequirementsFrom(requirements, testMethod); } return requirements; }
public List<String> getAnnotatedRequirements() { List<String> requirements = new ArrayList<String>(); Method testMethod = getTestMethod(); if (testMethod != null) { addRequirementFrom(requirements, testMethod); addMultipleRequirementsFrom(requirements, testMethod); } return requirements; }