public void reportStepFailureFor(Performable todo, Throwable e) { ExecutedStepDescription taskDescription = ExecutedStepDescription.of(todo.getClass(),"attemptsTo"); StepEventBus.getEventBus().stepFailed(new StepFailure(taskDescription, e)); }
public void reportStepFailureFor(Performable todo, Throwable e) { ExecutedStepDescription taskDescription = ExecutedStepDescription.of(todo.getClass(),"attemptsTo"); StepEventBus.getEventBus().stepFailed(new StepFailure(taskDescription, e)); }
private void notifyStepStarted(final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepEventBus.getEventBus().stepStarted(description); }
public void reportStepSkippedFor(Performable todo) { ExecutedStepDescription taskDescription = ExecutedStepDescription.of(todo.getClass(),"performAs"); StepEventBus.getEventBus().stepStarted(taskDescription); StepEventBus.getEventBus().stepIgnored(); }
public void reportStepSkippedFor(Performable todo) { ExecutedStepDescription taskDescription = ExecutedStepDescription.of(todo.getClass(),"performAs"); StepEventBus.getEventBus().stepStarted(taskDescription); StepEventBus.getEventBus().stepIgnored(); }
private void notifySkippedStepStarted(final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepEventBus.getEventBus().skippedStepStarted(description); }
private void notifyStepStarted(final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepEventBus.getEventBus().stepStarted(description); }
private void notifySkippedStepStarted(final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepEventBus.getEventBus().skippedStepStarted(description); }
private void notifyOfStepFailure(final Method method, final Object[] args, final Throwable cause) throws Throwable { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepFailure failure = new StepFailure(description, cause); StepEventBus.getEventBus().stepFailed(failure); if (shouldThrowExceptionImmediately()) { throw cause; } }
private void notifyStepStarted(final Object object, final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args), args) .withDisplayedFields(fieldValuesIn(object)); StepEventBus.getEventBus().stepStarted(description); }
private void notifySkippedStepStarted(final Object object, final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args), args) .withDisplayedFields(fieldValuesIn(object)); StepEventBus.getEventBus().skippedStepStarted(description); }
private void notifyOfStepFailure(final Method method, final Object[] args, final Throwable cause) throws Throwable { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepFailure failure = new StepFailure(description, cause); StepEventBus.getEventBus().stepFailed(failure); if (shouldThrowExceptionImmediately()) { throw cause; } }
private void notifyOfStepFailure(final Object object, final Method method, final Object[] args, final Throwable cause) throws Throwable { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args), args) .withDisplayedFields(fieldValuesIn(object)); StepFailure failure = new StepFailure(description, cause); StepEventBus.getEventBus().stepFailed(failure); if (shouldThrowExceptionImmediately()) { throw cause; } }