1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common_test_tester.support; |
17 |
|
|
18 |
|
import java.util.Date; |
19 |
|
|
20 |
|
import javax.persistence.Entity; |
21 |
|
import javax.persistence.Id; |
22 |
|
import javax.persistence.PrePersist; |
23 |
|
import javax.persistence.Temporal; |
24 |
|
import javax.persistence.TemporalType; |
25 |
|
|
26 |
|
import org.kuali.student.common.test.spring.Idable; |
27 |
|
import org.kuali.student.common.util.UUIDHelper; |
28 |
|
|
29 |
|
@Entity |
|
|
| 78.9% |
Uncovered Elements: 4 (19) |
Complexity: 9 |
Complexity Density: 0.9 |
|
30 |
|
public class Value implements Idable{ |
31 |
|
@Id |
32 |
|
private String id; |
33 |
|
|
34 |
|
private String value; |
35 |
|
|
36 |
|
@Temporal(TemporalType.TIMESTAMP) |
37 |
|
private Date createDate; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
42 |
16
|
@PrePersist... |
43 |
|
public void prePersist() { |
44 |
16
|
this.id = UUIDHelper.genStringUUID(this.id); |
45 |
|
} |
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
13
|
public Value() {... |
51 |
13
|
super(); |
52 |
|
} |
53 |
|
|
54 |
|
|
55 |
|
@param |
56 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
57 |
8
|
public Value(String value) {... |
58 |
8
|
super(); |
59 |
8
|
this.value = value; |
60 |
|
} |
61 |
|
|
62 |
|
|
63 |
|
@return |
64 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
8
|
public String getId() {... |
66 |
8
|
return id; |
67 |
|
} |
68 |
|
|
69 |
|
|
70 |
|
@param |
71 |
|
|
72 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
73 |
4
|
public void setId(String id) {... |
74 |
4
|
this.id = id; |
75 |
|
} |
76 |
|
|
77 |
|
|
78 |
|
@return |
79 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
8
|
public String getValue() {... |
81 |
8
|
return value; |
82 |
|
} |
83 |
|
|
84 |
|
|
85 |
|
@param |
86 |
|
|
87 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
9
|
public void setValue(String value) {... |
89 |
9
|
this.value = value; |
90 |
|
} |
91 |
|
|
92 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
93 |
0
|
public Date getCreateDate() {... |
94 |
0
|
return createDate; |
95 |
|
} |
96 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
97 |
0
|
public void setCreateDate(Date createDate) {... |
98 |
0
|
this.createDate = createDate; |
99 |
|
} |
100 |
|
} |