1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rendering.test.cts; |
21 |
|
|
22 |
|
import java.util.Collections; |
23 |
|
import java.util.List; |
24 |
|
import java.util.Properties; |
25 |
|
|
26 |
|
import org.apache.commons.lang3.builder.EqualsBuilder; |
27 |
|
import org.apache.commons.lang3.builder.HashCodeBuilder; |
28 |
|
import org.xwiki.text.XWikiToStringBuilder; |
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
@version |
34 |
|
@since |
35 |
|
|
|
|
| 47.4% |
Uncovered Elements: 10 (19) |
Complexity: 6 |
Complexity Density: 0.6 |
|
36 |
|
public class TestDataConfiguration |
37 |
|
{ |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
public List<String> notApplicableTests = Collections.emptyList(); |
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
public List<String> failingTests = Collections.emptyList(); |
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
public Properties testDescriptions = new Properties(); |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
public String inheritSyntax; |
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
public String fileExtension = "txt"; |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
0 |
@Override... |
66 |
|
public String toString() |
67 |
|
{ |
68 |
0 |
return new XWikiToStringBuilder(this) |
69 |
|
.append("notApplicableTests", this.notApplicableTests) |
70 |
|
.append("failingTests", this.failingTests) |
71 |
|
.append("testDescriptions", this.testDescriptions) |
72 |
|
.append("inheritSyntax", this.testDescriptions) |
73 |
|
.toString(); |
74 |
|
} |
75 |
|
|
|
|
| 57.1% |
Uncovered Elements: 6 (14) |
Complexity: 4 |
Complexity Density: 0.5 |
|
76 |
4 |
@Override... |
77 |
|
public boolean equals(Object object) |
78 |
|
{ |
79 |
4 |
if (object == null) { |
80 |
0 |
return false; |
81 |
|
} |
82 |
4 |
if (object == this) { |
83 |
0 |
return true; |
84 |
|
} |
85 |
4 |
if (object.getClass() != getClass()) { |
86 |
0 |
return false; |
87 |
|
} |
88 |
4 |
TestDataConfiguration rhs = (TestDataConfiguration) object; |
89 |
4 |
return new EqualsBuilder() |
90 |
|
.append(this.notApplicableTests, rhs.notApplicableTests) |
91 |
|
.append(this.failingTests, rhs.failingTests) |
92 |
|
.append(this.testDescriptions, rhs.testDescriptions) |
93 |
|
.append(this.inheritSyntax, rhs.inheritSyntax) |
94 |
|
.isEquals(); |
95 |
|
} |
96 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
97 |
0 |
@Override... |
98 |
|
public int hashCode() |
99 |
|
{ |
100 |
0 |
return new HashCodeBuilder(1, 15) |
101 |
|
.append(this.notApplicableTests) |
102 |
|
.append(this.failingTests) |
103 |
|
.append(this.testDescriptions) |
104 |
|
.append(this.inheritSyntax) |
105 |
|
.toHashCode(); |
106 |
|
} |
107 |
|
} |