Package org.jbehave.core.reporters.FilePrintStreamFactory

Examples of org.jbehave.core.reporters.FilePrintStreamFactory.FilePathResolver


        };
        crossReference.excludingStoriesWithNoExecutedScenarios(false);

        StoryReporterBuilder builder = mock(StoryReporterBuilder.class);
        when(builder.outputDirectory()).thenReturn(zebra);
        FilePathResolver pathResolver = new ResolveToPackagedName();
        when(builder.pathResolver()).thenReturn(pathResolver);

        // When
        StoryNarrator.narrateAnInterestingStory(crossReference.createStoryReporter(factory, builder), true);
        crossReference.getStepMonitor().stepMatchesPattern("a", true, new StepPattern(StepType.GIVEN, "(def)", "[abc]"), Object.class.getDeclaredMethods()[0], new Object());
View Full Code Here


        }.withXmlOnly();
        crossReference.excludingStoriesWithNoExecutedScenarios(false);

        StoryReporterBuilder builder = mock(StoryReporterBuilder.class);
        when(builder.outputDirectory()).thenReturn(zebra);
        FilePathResolver pathResolver = new ResolveToPackagedName();
        when(builder.pathResolver()).thenReturn(pathResolver);

        // When
        StoryNarrator.narrateAnInterestingStory(crossReference.createStoryReporter(factory, builder), true);
        crossReference.getStepMonitor().stepMatchesPattern("a", true, new StepPattern(StepType.GIVEN, "(def)", "[abc]"), Object.class.getDeclaredMethods()[0], new Object());
View Full Code Here

        }.withJsonOnly();
        crossReference.excludingStoriesWithNoExecutedScenarios(false);

        StoryReporterBuilder builder = mock(StoryReporterBuilder.class);
        when(builder.outputDirectory()).thenReturn(zebra);
        FilePathResolver pathResolver = new ResolveToPackagedName();
        when(builder.pathResolver()).thenReturn(pathResolver);

        // When
        StoryNarrator.narrateAnInterestingStory(crossReference.createStoryReporter(factory, builder), true);
        crossReference.getStepMonitor().stepMatchesPattern("a", true, new StepPattern(StepType.GIVEN, "(def)", "[abc]"), Object.class.getDeclaredMethods()[0], new Object());
View Full Code Here

        };
        crossReference.excludingStoriesWithNoExecutedScenarios(false);

        StoryReporterBuilder builder = mock(StoryReporterBuilder.class);
        when(builder.outputDirectory()).thenReturn(zebra);
        FilePathResolver pathResolver = new ResolveToPackagedName();
        when(builder.pathResolver()).thenReturn(pathResolver);

        // When
        StoryNarrator.narrateAnInterestingStory(crossReference.createStoryReporter(factory, builder), true);
        crossReference.getStepMonitor().stepMatchesPattern("a", true, new StepPattern(StepType.GIVEN, "(def)", "[abc]"), Object.class.getDeclaredMethods()[0], new Object());
View Full Code Here

        assertThatOutputNameIs("my_given", "my_given.ext", null);
    }

    @Test
    public void shouldResolveOutputNameFromStoryLocationWithSimpleNameResolver() {
        FilePathResolver resolver = new ResolveToSimpleName();
        assertThatOutputNameIs("org/jbehave/examples/trader/stories/my_given.story",
                "my_given.ext", resolver);
        assertThatOutputNameIs("/org/jbehave/examples/trader/stories/my_given.story",
                "my_given.ext", resolver);
        assertThatOutputNameIs("my_given.story", "my_given.ext", resolver);
View Full Code Here

       
        boolean reportFailureTrace = true;
        builder.setReportFailureTrace(reportFailureTrace);
        assertThat(builder.isReportFailureTrace(), equalTo(reportFailureTrace));
       
        FilePathResolver pathResolver = new FileConfiguration().getPathResolver();
        builder.setPathResolver(pathResolver);
        assertThat(builder.getPathResolver(), equalTo(pathResolver));
    }
View Full Code Here

TOP

Related Classes of org.jbehave.core.reporters.FilePrintStreamFactory.FilePathResolver

Copyright © 2018 www.massapicom. 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.