##### Coverage Report - org.jbehave.core.reporters.NullStoryReporter

Classes in this File | Line Coverage | Branch Coverage | Complexity
NullStoryReporter |
88% | 22/25
N/A | N/A
| 1.0;1

1 |  |
     package org.jbehave.core.reporters;
2 |  |
3 |  |
     import java.util.List;
4 |  |
     import java.util.Map;
5 |  |
6 |  |
     import org.jbehave.core.model.ExamplesTable;
7 |  |
     import org.jbehave.core.model.GivenStories;
8 |  |
     import org.jbehave.core.model.Meta;
9 |  |
     import org.jbehave.core.model.Narrative;
10 |  |
     import org.jbehave.core.model.OutcomesTable;
11 |  |
     import org.jbehave.core.model.Scenario;
12 |  |
     import org.jbehave.core.model.Story;
13 |  |
     import org.jbehave.core.model.StoryDuration;
14 |  |
15 |  |
     /**
16 |  |
      * <p>
17 |  |
      * <a href="http://en.wikipedia.org/wiki/Null_Object_pattern">Null-object</a> implementation of
18 |  |
      * {@link StoryReporter}. Users can subclass it and can override only the method that they
19 |  |
      * are interested in.
20 |  |
      * </p>
21 |  |
      */
22 | 24 |
     public class NullStoryReporter implements StoryReporter {
23 |  |
24 |  |
         public void beforeStep(String step) {
25 | 1 |
         }
26 |  |
27 |  |
         public void successful(String step) {
28 | 88 |
         }
29 |  |
30 |  |
         public void ignorable(String step) {
31 | 8 |
         }
32 |  |
33 |  |
         public void pending(String step) {
34 | 8 |
         }
35 |  |
36 |  |
         public void notPerformed(String step) {
37 | 8 |
         }
38 |  |
39 |  |
         public void failed(String step, Throwable cause) {
40 | 10 |
         }
41 |  |
42 |  |
         public void failedOutcomes(String step, OutcomesTable table) {
43 | 8 |
         }
44 |  |
45 |  |
         public void storyNotAllowed(Story story, String filter) {
46 | 0 |
         }
47 |  |
48 |  |
         public void beforeStory(Story story, boolean givenStory) {
49 | 11 |
         }
50 |  |
51 |  |
         public void storyCancelled(Story story, StoryDuration storyDuration) {
52 | 9 |
         }
53 |  |
54 |  |
         public void afterStory(boolean givenStory) {
55 | 11 |
         }
56 |  |
57 |  |
         public void narrative(final Narrative narrative) {
58 | 10 |
         }
59 |  |
60 |  |
         public void givenStories(GivenStories givenStories) {
61 | 0 |
         }
62 |  |
63 |  |
         public void givenStories(List<String> storyPaths) {
64 | 8 |
         }
65 |  |
66 |  |
         public void beforeScenario(String title) {
67 | 18 |
         }
68 |  |
69 |  |
         public void scenarioNotAllowed(Scenario scenario, String filter) {
70 | 0 |
         }
71 |  |
72 |  |
         public void scenarioMeta(Meta meta) {
73 | 2 |
         }
74 |  |
75 |  |
         public void afterScenario() {
76 | 17 |
         }
77 |  |
78 |  |
         public void beforeExamples(List<String> steps, ExamplesTable table) {
79 | 8 |
         }
80 |  |
81 |  |
         public void example(Map<String, String> tableRow) {
82 | 16 |
         }
83 |  |
84 |  |
         public void afterExamples() {
85 | 8 |
         }
86 |  |
87 |  |
         public void dryRun() {
88 | 8 |
         }
89 |  |
90 |  |
         public void pendingMethods(List<String> methods) {
91 | 8 |
         }
92 |  |
93 |  |
         public void restarted(String step, Throwable cause) {
94 | 8 |
         }
95 |  |
96 |  |
97 |  |
     }