Examples of StepHooks


Examples of org.moresbycoffee.mbyhave8.hooks.StepHooks

    }

    private ScenarioOutput executeHelper(final BiFunction<Step, StepHooks, StepOutput> stepExecutor, final BiFunction<Step, StepHooks, StepOutput> skipStep, final ScenarioHooks hooks) {
        hooks.startScenario(this);

        final StepHooks stepHooks = new ScenarioAwareStepHook(id, hooks);

        ScenarioResult result = ScenarioResult.Success;
        final List<StepOutput> stepOutputs;
        if (steps.isEmpty()) {
            result = ScenarioResult.Pending;
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.hooks.StepHooks

public class StepCallbackInvocation {

    @Test
    public void skipped_steps_should_call_callbacks_too() {

        final StepHooks hooks = mock(StepHooks.class);
        successGivenStep().skip(hooks);

        final InOrder inOrder = inOrder(hooks);
        inOrder.verify(hooks).startStep(any(Step.class));
        inOrder.verify(hooks).endStep(any(Step.class), isA(StepResult.Skipped.class));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.