コード例 #1
0
  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();
  }