##### Coverage Report - org.jbehave.core.model.Narrative

Classes in this File | Line Coverage | Branch Coverage | Complexity
Narrative |
100% | 11/11
100% | 2/2
| 1.0;1

1 |  |
     package org.jbehave.core.model;
2 |  |
3 |  |
     import org.apache.commons.lang.builder.ToStringBuilder;
4 |  |
     import org.apache.commons.lang.builder.ToStringStyle;
5 |  |
6 |  |
     public class Narrative {
7 |  |
8 | 1 |
         public static final Narrative EMPTY = new Narrative("", "", "");
9 |  |
10 |  |
         private final String inOrderTo;
11 |  |
         private final String asA;
12 |  |
         private final String iWantTo;
13 |  |
14 | 26 |
         public Narrative(String inOrderTo, String asA, String iWantTo) {
15 | 26 |
             this.inOrderTo = inOrderTo;
16 | 26 |
             this.asA = asA;
17 | 26 |
             this.iWantTo = iWantTo;
18 | 26 |
         }
19 |  |
20 |  |
         public String inOrderTo() {
21 | 20 |
             return inOrderTo;
22 |  |
         }
23 |  |
24 |  |
         public String asA() {
25 | 20 |
             return asA;
26 |  |
         }
27 |  |
28 |  |
         public String iWantTo() {
29 | 20 |
             return iWantTo;
30 |  |
         }
31 |  |
32 |  |
         public boolean isEmpty() {
33 | 26 |
             return EMPTY == this;
34 |  |
         }
35 |  |
36 |  |
         @Override
37 |  |
         public String toString() {
38 | 33 |
             return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
39 |  |
         }
40 |  |
41 |  |
     }