1 |
|
package org.kuali.spring.util; |
2 |
|
|
3 |
|
import java.util.Properties; |
4 |
|
|
|
|
| 63.6% |
Uncovered Elements: 12 (33) |
Complexity: 14 |
Complexity Density: 0.74 |
|
5 |
|
public class PropertiesMergeContext { |
6 |
|
public static final boolean DEFAULT_IS_SORT = true; |
7 |
|
public static final boolean DEFAULT_IS_OVERRIDE = true; |
8 |
|
boolean override = DEFAULT_IS_OVERRIDE; |
9 |
|
boolean sort = DEFAULT_IS_SORT; |
10 |
|
Properties currentProperties; |
11 |
|
Properties newProperties; |
12 |
|
PropertySource source; |
13 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
14 |
0
|
public PropertiesMergeContext() {... |
15 |
0
|
this(null, null, DEFAULT_IS_OVERRIDE, null, DEFAULT_IS_SORT); |
16 |
|
} |
17 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
18 |
1
|
public PropertiesMergeContext(Properties currentProperties, Properties newProperties, PropertySource source) {... |
19 |
1
|
this(currentProperties, newProperties, DEFAULT_IS_OVERRIDE, source, DEFAULT_IS_SORT); |
20 |
|
} |
21 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
22 |
4
|
public PropertiesMergeContext(Properties currentProperties, Properties newProperties, boolean override,... |
23 |
|
PropertySource source) { |
24 |
4
|
this(currentProperties, newProperties, override, source, DEFAULT_IS_SORT); |
25 |
|
} |
26 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
27 |
5
|
public PropertiesMergeContext(Properties currentProperties, Properties newProperties, boolean override,... |
28 |
|
PropertySource source, boolean sort) { |
29 |
5
|
super(); |
30 |
5
|
this.currentProperties = currentProperties; |
31 |
5
|
this.newProperties = newProperties; |
32 |
5
|
this.override = override; |
33 |
5
|
this.source = source; |
34 |
5
|
this.sort = sort; |
35 |
|
} |
36 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
37 |
136
|
public Properties getCurrentProperties() {... |
38 |
136
|
return currentProperties; |
39 |
|
} |
40 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
41 |
0
|
public void setCurrentProperties(Properties currentProperties) {... |
42 |
0
|
this.currentProperties = currentProperties; |
43 |
|
} |
44 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
45 |
141
|
public Properties getNewProperties() {... |
46 |
141
|
return newProperties; |
47 |
|
} |
48 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
49 |
0
|
public void setNewProperties(Properties newProperties) {... |
50 |
0
|
this.newProperties = newProperties; |
51 |
|
} |
52 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
53 |
136
|
public boolean isOverride() {... |
54 |
136
|
return override; |
55 |
|
} |
56 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
0
|
public void setOverride(boolean override) {... |
58 |
0
|
this.override = override; |
59 |
|
} |
60 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
5
|
public boolean isSort() {... |
62 |
5
|
return sort; |
63 |
|
} |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
0
|
public void setSort(boolean sort) {... |
66 |
0
|
this.sort = sort; |
67 |
|
} |
68 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
136
|
public PropertySource getSource() {... |
70 |
136
|
return source; |
71 |
|
} |
72 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
73 |
0
|
public void setSource(PropertySource source) {... |
74 |
0
|
this.source = source; |
75 |
|
} |
76 |
|
} |