Пример #1
0
  private void notifyOfStepFailure(final Method method, final Object[] args, final Throwable cause)
      throws Exception {
    ExecutedStepDescription description =
        ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args));

    StepFailure failure = new StepFailure(description, cause);
    StepEventBus.getEventBus().stepFailed(failure);
  }
Пример #2
0
  private void notifySkippedStepStarted(final Method method, final Object[] args) {

    ExecutedStepDescription description =
        ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args));
    StepEventBus.getEventBus().skippedStepStarted(description);
  }