public boolean isFluent() { if (description.getTestMethod() != null) { Step step = description.getTestMethod().getAnnotation(Step.class); return ((step != null) && (step.fluent())); } return false; }
private Optional<String> getNameFromStepAnnotationIn(final Method testMethod) { Step step = testMethod.getAnnotation(Step.class); if ((step != null) && (!StringUtils.isEmpty(step.value()))) { return Optional.of(injectAnnotatedFieldValuesFrom(description).into(step.value())); } return Optional.absent(); }