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