##### Coverage Report - org.jbehave.core.steps.ParameterControls

Classes in this File | Line Coverage | Branch Coverage | Complexity
ParameterControls |
94% | 16/17
N/A | N/A
| 1.0;1

1 |  |
     package org.jbehave.core.steps;
2 |  |
3 |  |
     import org.apache.commons.lang.builder.ToStringBuilder;
4 |  |
     import org.apache.commons.lang.builder.ToStringStyle;
5 |  |
6 |  |
     public class ParameterControls {
7 |  |
8 |  |
         public static final String DEFAULT_NAME_DELIMITER_LEFT = "<";
9 |  |
         public static final String DEFAULT_NAME_DELIMITER_RIGHT = ">";
10 |  |
         private String nameDelimiterLeft;
11 |  |
         private String nameDelimiterRight;
12 |  |
         private boolean delimiterNamedParameters;
13 |  |
14 |  |
         public ParameterControls() {
15 | 704 |
             this(DEFAULT_NAME_DELIMITER_LEFT, DEFAULT_NAME_DELIMITER_RIGHT, false);
16 | 704 |
         }
17 |  |
18 | 704 |
         public ParameterControls(String nameDelimiterLeft, String nameDelimiterRight, boolean nameDelimitedParameters) {
19 | 704 |
             this.nameDelimiterLeft = nameDelimiterLeft;
20 | 704 |
             this.nameDelimiterRight = nameDelimiterRight;
21 | 704 |
             this.delimiterNamedParameters = nameDelimitedParameters;
22 | 704 |
         }
23 |  |
24 |  |
         public String nameDelimiterLeft() {
25 | 208 |
             return nameDelimiterLeft;
26 |  |
         }
27 |  |
28 |  |
         public String nameDelimiterRight() {
29 | 208 |
             return nameDelimiterRight;
30 |  |
         }
31 |  |
32 |  |
         public boolean delimiterNamedParameters() {
33 | 60 |
             return delimiterNamedParameters;
34 |  |
         }
35 |  |
36 |  |
         public ParameterControls useNameDelimiterLeft(String nameDelimiterLeft) {
37 | 1 |
             this.nameDelimiterLeft = nameDelimiterLeft;
38 | 1 |
             return this;
39 |  |
         }
40 |  |
41 |  |
         public ParameterControls useNameDelimiterRight(String nameDelimiterRight) {
42 | 1 |
             this.nameDelimiterRight = nameDelimiterRight;
43 | 1 |
             return this;
44 |  |
         }
45 |  |
46 |  |
         public ParameterControls useDelimiterNamedParameters(boolean delimiterNamedParameters) {
47 | 3 |
             this.delimiterNamedParameters = delimiterNamedParameters;
48 | 3 |
             return this;
49 |  |
         }
50 |  |
51 |  |
         @Override
52 |  |
         public String toString() {
53 | 0 |
             return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
54 |  |
         }
55 |  |
56 |  |
     }