Examples of StepOutput


Examples of org.moresbycoffee.mbyhave8.result.StepOutput

        assertEquals(StepResult.Pending, stepOutput.getResult());
    }

    @Test
    public void given_step_implementation_without_return_value_should_any_other_Exception_as_error() {
        final StepOutput stepOutput = errorGivenStep().execute(DummyStepHooks.DUMMY);
        assertThat(stepOutput.getResult(), instanceOf(StepResult.Error.class));
    }
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.result.StepOutput

        assertThat(stepOutput.getResult(), instanceOf(StepResult.Error.class));
    }

    @Test
    public void failing_given_step_should_return_the_exception_in_the_step_output() {
        final StepOutput stepOutput = failingGivenStep().execute(DummyStepHooks.DUMMY);
        assertThat(stepOutput.getException(), instanceOf(AssertionError.class));
    }
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.result.StepOutput

        assertThat(stepOutput.getException(), instanceOf(AssertionError.class));
    }

    @Test
    public void step_in_error_should_return_the_exception_in_the_step_output() {
        final StepOutput stepOutput = errorGivenStep().execute(DummyStepHooks.DUMMY);
        assertThat(stepOutput.getException(), notNullValue());
    }
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.result.StepOutput

    public void implementationLess_given_step_should_return_pending_state() {
        final Step step = new MByHaveSpec() {
            Step innerStep = given("Implementationless Step");
        }.innerStep;

        final StepOutput stepOutput = step.execute(DummyStepHooks.DUMMY);

        assertEquals(StepResult.Pending, stepOutput.getResult());
    }
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.result.StepOutput

    public void implementationLess_when_step_should_return_pending_state() {
        final Step step = new MByHaveSpec() {
            Step innerStep = when("Implementationless Step");
        }.innerStep;

        final StepOutput stepOutput = step.execute(DummyStepHooks.DUMMY);

        assertEquals(StepResult.Pending, stepOutput.getResult());
    }
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.result.StepOutput

*/
public class Then_step_Test {

    @Test
    public void then_step_implementation_without_return_value_should_AssertException_as_failure() {
        StepOutput stepOutput = failingThenStep().execute(DummyStepHooks.DUMMY);
        assertThat(stepOutput.getResult(), instanceOf(StepResult.Failure.class));
    }
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.result.StepOutput

        assertThat(stepOutput.getResult(), instanceOf(StepResult.Failure.class));
    }

    @Test
    public void then_step_implementation_without_return_value_should_PendingException_as_pending() {
        StepOutput stepOutput = pendingThenStep().execute(DummyStepHooks.DUMMY);
        assertEquals(StepResult.Pending, stepOutput.getResult());
    }
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.result.StepOutput

        assertEquals(StepResult.Pending, stepOutput.getResult());
    }

    @Test
    public void then_step_implementation_without_return_value_should_any_other_Exception_as_error() {
        StepOutput stepOutput = errorThenStep().execute(DummyStepHooks.DUMMY);
        assertThat(stepOutput.getResult(), instanceOf(StepResult.Error.class));
    }
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.result.StepOutput

    public void implementationLess_then_step_should_return_pending_state() {
        final Step step = new MByHaveSpec() {
            Step innerStep = then("Implementationless Step");
        }.innerStep;

        final StepOutput stepOutput = step.execute(DummyStepHooks.DUMMY);

        assertEquals(StepResult.Pending, stepOutput.getResult());
    }
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.