Coverage Report - org.jbehave.core.reporters.NullStoryReporter
 
Classes in this File Line Coverage Branch Coverage Complexity
NullStoryReporter
87%
21/24
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.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  23
 public class NullStoryReporter implements StoryReporter {
 23  
 
 24  
     public void successful(String step) {
 25  24
     }
 26  
 
 27  
     public void ignorable(String step) {
 28  8
     }
 29  
 
 30  
     public void pending(String step) {
 31  4
     }
 32  
 
 33  
     public void notPerformed(String step) {
 34  8
     }
 35  
 
 36  
     public void failed(String step, Throwable cause) {
 37  6
     }
 38  
 
 39  
     public void failedOutcomes(String step, OutcomesTable table) {
 40  8
     }
 41  
 
 42  
     public void storyNotAllowed(Story story, String filter) {
 43  0
     }
 44  
 
 45  
     public void beforeStory(Story story, boolean givenStory) {
 46  10
     }
 47  
 
 48  
     public void storyCancelled(Story story, StoryDuration storyDuration) {
 49  8
     }
 50  
 
 51  
     public void afterStory(boolean givenStory) {
 52  10
     }
 53  
 
 54  
     public void narrative(final Narrative narrative) {
 55  8
     }
 56  
 
 57  
     public void givenStories(GivenStories givenStories) {
 58  0
     }
 59  
 
 60  
     public void givenStories(List<String> storyPaths) {
 61  7
     }
 62  
 
 63  
     public void beforeScenario(String title) {
 64  10
     }
 65  
 
 66  
     public void scenarioNotAllowed(Scenario scenario, String filter) {
 67  0
     }
 68  
 
 69  
     public void scenarioMeta(Meta meta) {
 70  1
     }
 71  
 
 72  
     public void afterScenario() {
 73  9
     }
 74  
 
 75  
     public void beforeExamples(List<String> steps, ExamplesTable table) {
 76  8
     }
 77  
 
 78  
     public void example(Map<String, String> tableRow) {
 79  16
     }
 80  
 
 81  
     public void afterExamples() {
 82  8
     }
 83  
 
 84  
     public void dryRun() {
 85  8
     }
 86  
 
 87  
     public void pendingMethods(List<String> methods) {
 88  7
     }
 89  
 
 90  
     public void restarted(String step, Throwable cause) {
 91  7
     }
 92  
 
 93  
 }