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

Classes in this File | Line Coverage | Branch Coverage | Complexity
Description |
100% | 6/6
N/A | N/A
| 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 Description {
7 |  |
8 | 1 |
         public static final Description EMPTY = new Description("");
9 |  |
10 |  |
         private final String descriptionAsString;
11 |  |
12 | 48 |
         public Description(String descriptionAsString) {
13 | 48 |
             this.descriptionAsString = descriptionAsString;
14 | 48 |
         }
15 |  |
16 |  |
         public String asString() {
17 | 64 |
             return descriptionAsString;
18 |  |
         }
19 |  |
20 |  |
         @Override
21 |  |
         public String toString() {
22 | 5 |
             return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
23 |  |
         }
24 |  |
25 |  |
     }