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