Examples of MByHave8Runner


Examples of org.moresbycoffee.mbyhave8.junit.MByHave8Runner

    @Test
    public void should_return_success_to_each_level() {

        final RunNotifier runNotifier = mock(RunNotifier.class);

        new MByHave8Runner(SimpleJunitCompatibleSpec.class).run(runNotifier);

        Description suiteDescription = Description.createSuiteDescription(SimpleJunitCompatibleSpec.class);
        verify(runNotifier).fireTestStarted(suiteDescription);
        verify(runNotifier).fireTestFinished(suiteDescription);
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.junit.MByHave8Runner

public class Junit_Runner_getDescription_Test {

    @Test
    public void should_generate_description_for_single_feature_single_scenario_single_step() {

        final Description description = new MByHave8Runner(SimpleJunitCompatibleSpec.class).getDescription();

        assertEquals(SimpleJunitCompatibleSpec.class.getName(), description.getDisplayName());

        final ArrayList<Description> featureDescriptions = description.getChildren();
        assertThat(featureDescriptions.size(), equalTo(1));
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.