Coverage Report - org.jbehave.core.reporters.ReportsCount
 
Classes in this File Line Coverage Branch Coverage Complexity
ReportsCount
94%
16/17
N/A
1
 
 1  
 package org.jbehave.core.reporters;
 2  
 
 3  
 import org.apache.commons.lang.builder.ToStringBuilder;
 4  
 import org.apache.commons.lang.builder.ToStringStyle;
 5  
 
 6  
 public class ReportsCount {
 7  
 
 8  
 
 9  
     private final int stories;
 10  
     private final int storiesNotAllowed;
 11  
     private final int storiesPending;
 12  
     private final int scenarios;
 13  
     private final int scenariosFailed;
 14  
     private final int scenariosNotAllowed;
 15  
     private final int scenariosPending;
 16  
 
 17  
     public ReportsCount(int stories, int storiesNotAllowed, int storiesPending, int scenarios, int scenariosFailed,
 18  17
             int scenariosNotAllowed, int scenariosPending) {
 19  17
         this.stories = stories;
 20  17
         this.storiesNotAllowed = storiesNotAllowed;
 21  17
         this.storiesPending = storiesPending;
 22  17
         this.scenarios = scenarios;
 23  17
         this.scenariosFailed = scenariosFailed;
 24  17
         this.scenariosNotAllowed = scenariosNotAllowed;
 25  17
         this.scenariosPending = scenariosPending;
 26  17
     }
 27  
 
 28  
     public int getStories() {
 29  17
         return stories;
 30  
     }
 31  
 
 32  
     public int getStoriesNotAllowed() {
 33  17
         return storiesNotAllowed;
 34  
     }
 35  
 
 36  
     public int getStoriesPending() {
 37  16
         return storiesPending;
 38  
     }
 39  
 
 40  
     public int getScenarios() {
 41  17
         return scenarios;
 42  
     }
 43  
 
 44  
     public int getScenariosFailed() {
 45  32
         return scenariosFailed;
 46  
     }
 47  
 
 48  
     public int getScenariosNotAllowed() {
 49  17
         return scenariosNotAllowed;
 50  
     }
 51  
 
 52  
     public int getScenariosPending() {
 53  16
         return scenariosPending;
 54  
     }
 55  
 
 56  
     @Override
 57  
     public String toString() {
 58  0
         return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
 59  
     }
 60  
 }