|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Value | Line # 30 | 10 | 0% | 9 | 4 | 78.9% |
0.7894737
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (7) | |||
| Result | |||
|
0.68421054
|
org.kuali.student.common_test_tester.ServiceCommonTest.testClientCaching
org.kuali.student.common_test_tester.ServiceCommonTest.testClientCaching
|
1 PASS | |
|
0.57894737
|
org.kuali.student.common_test_tester.ServiceCommonCopyTest.test2
org.kuali.student.common_test_tester.ServiceCommonCopyTest.test2
|
1 PASS | |
|
0.47368422
|
org.kuali.student.common_test_tester.DaoCommonTest.test1
org.kuali.student.common_test_tester.DaoCommonTest.test1
|
1 PASS | |
|
0.47368422
|
org.kuali.student.common_test_tester.DaoCommonTest.test2
org.kuali.student.common_test_tester.DaoCommonTest.test2
|
1 PASS | |
|
0.36842105
|
org.kuali.student.common_test_tester.ServiceCommonTest.test1
org.kuali.student.common_test_tester.ServiceCommonTest.test1
|
1 PASS | |
|
0.36842105
|
org.kuali.student.common_test_tester.ServiceCommonCopyTest.test1
org.kuali.student.common_test_tester.ServiceCommonCopyTest.test1
|
1 PASS | |
|
0.21052632
|
org.kuali.student.common_test_tester.ServiceCommonTest.testDaoLoader
org.kuali.student.common_test_tester.ServiceCommonTest.testDaoLoader
|
1 PASS | |
| 1 | /** | |
| 2 | * Copyright 2010 The Kuali Foundation Licensed under the | |
| 3 | * Educational Community License, Version 2.0 (the "License"); you may | |
| 4 | * not use this file except in compliance with the License. You may | |
| 5 | * obtain a copy of the License at | |
| 6 | * | |
| 7 | * http://www.osedu.org/licenses/ECL-2.0 | |
| 8 | * | |
| 9 | * Unless required by applicable law or agreed to in writing, | |
| 10 | * software distributed under the License is distributed on an "AS IS" | |
| 11 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | |
| 12 | * or implied. See the License for the specific language governing | |
| 13 | * permissions and limitations under the License. | |
| 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 | |
| 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 | * AutoGenerate the Id | |
| 41 | */ | |
| 42 | 16 |
@PrePersist |
| 43 | public void prePersist() { | |
| 44 | 16 | this.id = UUIDHelper.genStringUUID(this.id); |
| 45 | } | |
| 46 | ||
| 47 | /** | |
| 48 | * | |
| 49 | */ | |
| 50 | 13 |
public Value() { |
| 51 | 13 | super(); |
| 52 | } | |
| 53 | ||
| 54 | /** | |
| 55 | * @param value | |
| 56 | */ | |
| 57 | 8 |
public Value(String value) { |
| 58 | 8 | super(); |
| 59 | 8 | this.value = value; |
| 60 | } | |
| 61 | ||
| 62 | /** | |
| 63 | * @return the id | |
| 64 | */ | |
| 65 | 8 |
public String getId() { |
| 66 | 8 | return id; |
| 67 | } | |
| 68 | ||
| 69 | /** | |
| 70 | * @param id | |
| 71 | * the id to set | |
| 72 | */ | |
| 73 | 4 |
public void setId(String id) { |
| 74 | 4 | this.id = id; |
| 75 | } | |
| 76 | ||
| 77 | /** | |
| 78 | * @return the value | |
| 79 | */ | |
| 80 | 8 |
public String getValue() { |
| 81 | 8 | return value; |
| 82 | } | |
| 83 | ||
| 84 | /** | |
| 85 | * @param value | |
| 86 | * the value to set | |
| 87 | */ | |
| 88 | 9 |
public void setValue(String value) { |
| 89 | 9 | this.value = value; |
| 90 | } | |
| 91 | ||
| 92 | ||
| 93 | 0 |
public Date getCreateDate() { |
| 94 | 0 | return createDate; |
| 95 | } | |
| 96 | ||
| 97 | 0 |
public void setCreateDate(Date createDate) { |
| 98 | 0 | this.createDate = createDate; |
| 99 | } | |
| 100 | } | |
|
||||||||||||