public String getAnnotatedIssueForTestCase(Class<?> testCase) { Issue issueAnnotation = testCase.getAnnotation(Issue.class); if (issueAnnotation != null) { return issueAnnotation.value(); } else { return null; } }
@Test @Issue("#NO-97") public void shouldExecuteThisTestThree() { steps.initialization(); steps.when_example_action_for(1); steps.then_example_result_should_be(2); }
public String getAnnotatedIssueForTestCase(Class<?> testCase) { Issue issueAnnotation = testCase.getAnnotation(Issue.class); if (issueAnnotation != null) { return issueAnnotation.value(); } else { return null; } }
public String getAnnotatedIssueForTestCase(Class<?> testCase) { Issue issueAnnotation = testCase.getAnnotation(Issue.class); if (issueAnnotation != null) { return issueAnnotation.value(); } else { return null; } }
private Optional<String> getAnnotatedIssue(String methodName) { java.util.Optional<Method> testMethod = getMethodCalled(methodName); if ((testMethod.isPresent()) && (testMethod.get().getAnnotation(Issue.class) != null)) { return Optional.of(testMethod.get().getAnnotation(Issue.class).value()); } return Optional.empty(); }
public Optional<String> getAnnotatedIssue(String methodName) { Optional<Method> testMethod = getMethodCalled(methodName); if ((testMethod.isPresent()) && (testMethod.get().getAnnotation(Issue.class) != null)) { return Optional.of(testMethod.get().getAnnotation(Issue.class).value()); } return Optional.absent(); }
public Optional<String> getAnnotatedIssue(String methodName) { Optional<Method> testMethod = getMethodCalled(methodName); if ((testMethod.isPresent()) && (testMethod.get().getAnnotation(Issue.class) != null)) { return Optional.of(testMethod.get().getAnnotation(Issue.class).value()); } return Optional.absent(); }