|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ReqComponentInfo | Line # 37 | 21 | 0% | 20 | 4 | 90.5% |
0.9047619
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
(49) | |||
Result | |||
0.85714287
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateReqComponentForField org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateReqComponentForField | 1 PASS | |
0.85714287
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateStatementTreeViewFromEmpty org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateStatementTreeViewFromEmpty | 1 PASS | |
0.8333333
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateReqComponent org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateReqComponent | 1 PASS | |
0.8095238
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testValidateReqComponent org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testValidateReqComponent | 1 PASS | |
0.78571427
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testCreateReqComponent org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testCreateReqComponent | 1 PASS | |
0.7619048
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testTranslateReqComponentToNL org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testTranslateReqComponentToNL | 1 PASS | |
0.71428573
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetReqComponent org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetReqComponent | 1 PASS | |
0.71428573
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetReqComponentsByType org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetReqComponentsByType | 1 PASS | |
0.71428573
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetReqComponents_DetailInfo org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetReqComponents_DetailInfo | 1 PASS | |
0.5714286
|
org.kuali.student.core.dictionary.service.TestStatementDictionary.testRequirementComponentInfoValidation org.kuali.student.core.dictionary.service.TestStatementDictionary.testRequirementComponentInfoValidation | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateStatement_EnglishGerman org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateStatement_EnglishGerman | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement1_English org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement1_English | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForReqComponent_GradeCheck org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForReqComponent_GradeCheck | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_AllOf_1Clu org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_AllOf_1Clu | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateReqComponent_English org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateReqComponent_English | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement4 org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement4 | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement1_English_EmptyCluId org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement1_English_EmptyCluId | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement6 org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement6 | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_AllOf org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_AllOf | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_NoneOf org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_NoneOf | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_OneOf_English org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_OneOf_English | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateReqComponent_German org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateReqComponent_German | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForRefStatementRelation org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForRefStatementRelation | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForReqComponent_1ofN org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForReqComponent_1ofN | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement1_English_NullCluId org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement1_English_NullCluId | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_OneOf_EnglishGerman org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_OneOf_EnglishGerman | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForReqComponent_DefaultEnglish org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForReqComponent_DefaultEnglish | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement5 org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement5 | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_TotalCredits org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_TotalCredits | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateStatement_English org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateStatement_English | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_OneOf_2Clus org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_OneOf_2Clus | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement1_EnglishGerman org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement1_EnglishGerman | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForReqComponent_EnglishGerman org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForReqComponent_EnglishGerman | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_InvalidNlUsageTypeKey org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_InvalidNlUsageTypeKey | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateStatement_German org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateStatement_German | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateReqComponent_InvalidNlUsageTypeKey org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateReqComponent_InvalidNlUsageTypeKey | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_GPA org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_GPA | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForStatement org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForStatement | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement3 org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement3 | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement2 org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement2 | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForReqComponent_1of1 org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForReqComponent_1of1 | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateReqComponent_EnglishGerman org.kuali.student.core.statement.naturallanguage.translators.NaturalLanguageTranslatorTest.testTranslateReqComponent_EnglishGerman | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_OneOf_German org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testTranslate_OneOf_German | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement1_German org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatement1_German | 1 PASS | |
0.52380955
|
org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatementId1 org.kuali.student.core.statement.naturallanguage.translators.StatementTranslatorTest.testTranslateStatementId1 | 1 PASS | |
0.47619048
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateReqComponent_VersionMismatchException org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateReqComponent_VersionMismatchException | 1 PASS | |
0.42857143
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testDeleteReqComponent org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testDeleteReqComponent | 1 PASS | |
0.42857143
|
org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetReqComponents org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetReqComponents | 1 PASS | |
0.42857143
|
org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testInvalidReqComponentType org.kuali.student.core.statement.naturallanguage.translators.ReqComponentTranslatorTest.testInvalidReqComponentType | 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.core.statement.dto; | |
17 | ||
18 | import java.io.Serializable; | |
19 | import java.util.ArrayList; | |
20 | import java.util.Date; | |
21 | import java.util.List; | |
22 | ||
23 | import javax.xml.bind.annotation.XmlAccessType; | |
24 | import javax.xml.bind.annotation.XmlAccessorType; | |
25 | import javax.xml.bind.annotation.XmlAttribute; | |
26 | import javax.xml.bind.annotation.XmlElement; | |
27 | ||
28 | import org.kuali.student.core.dto.HasTypeState; | |
29 | import org.kuali.student.core.dto.Idable; | |
30 | import org.kuali.student.core.dto.MetaInfo; | |
31 | import org.kuali.student.core.dto.RichTextInfo; | |
32 | ||
33 | /** | |
34 | *Information about a requirement component. | |
35 | */ | |
36 | @XmlAccessorType(XmlAccessType.FIELD) | |
37 | public class ReqComponentInfo implements Serializable, Idable, HasTypeState { | |
38 | ||
39 | private static final long serialVersionUID = 1L; | |
40 | ||
41 | @XmlElement | |
42 | private RichTextInfo desc; | |
43 | ||
44 | @XmlElement | |
45 | private List<ReqCompFieldInfo> reqCompFields; | |
46 | ||
47 | @XmlElement | |
48 | private Date effectiveDate; | |
49 | ||
50 | @XmlElement | |
51 | private Date expirationDate; | |
52 | ||
53 | @XmlElement | |
54 | private MetaInfo metaInfo; | |
55 | ||
56 | @XmlAttribute | |
57 | private String type; | |
58 | ||
59 | @XmlAttribute | |
60 | private String state; | |
61 | ||
62 | @XmlAttribute | |
63 | private String id; | |
64 | ||
65 | /** | |
66 | * <code>naturalLanguageTranslation</code> attribute is a read-only | |
67 | * attribute which is generated on-the-fly and should not be persisted. | |
68 | */ | |
69 | @XmlAttribute | |
70 | private String naturalLanguageTranslation; | |
71 | ||
72 | /** | |
73 | * Narrative description of the requirement component. | |
74 | */ | |
75 | 31 | public RichTextInfo getDesc() { |
76 | 31 | return desc; |
77 | } | |
78 | ||
79 | 104 | public void setDesc(RichTextInfo desc) { |
80 | 104 | this.desc = desc; |
81 | } | |
82 | ||
83 | /** | |
84 | * Detailed information about a requirement component field value. | |
85 | */ | |
86 | 277 | public List<ReqCompFieldInfo> getReqCompFields() { |
87 | 277 | if(null == reqCompFields) { |
88 | 10 | reqCompFields = new ArrayList<ReqCompFieldInfo>(); |
89 | } | |
90 | 277 | return reqCompFields; |
91 | } | |
92 | ||
93 | 101 | public void setReqCompFields(List<ReqCompFieldInfo> reqCompFields) { |
94 | 101 | this.reqCompFields = reqCompFields; |
95 | } | |
96 | ||
97 | /** | |
98 | * Date and time that this requirement component became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date. | |
99 | */ | |
100 | 22 | public Date getEffectiveDate() { |
101 | 22 | return effectiveDate; |
102 | } | |
103 | ||
104 | 98 | public void setEffectiveDate(Date effectiveDate) { |
105 | 98 | this.effectiveDate = effectiveDate; |
106 | } | |
107 | ||
108 | /** | |
109 | * Date and time that this requirement component expires. This is a similar concept to the expiration date on enumerated values. If specified, this must be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date. | |
110 | */ | |
111 | 22 | public Date getExpirationDate() { |
112 | 22 | return expirationDate; |
113 | } | |
114 | ||
115 | 96 | public void setExpirationDate(Date expirationDate) { |
116 | 96 | this.expirationDate = expirationDate; |
117 | } | |
118 | ||
119 | /** | |
120 | * Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations. | |
121 | */ | |
122 | 18 | public MetaInfo getMetaInfo() { |
123 | 18 | return metaInfo; |
124 | } | |
125 | ||
126 | 99 | public void setMetaInfo(MetaInfo metaInfo) { |
127 | 99 | this.metaInfo = metaInfo; |
128 | } | |
129 | ||
130 | /** | |
131 | * Unique identifier for a requirement component type. | |
132 | */ | |
133 | 93 | public String getType() { |
134 | 93 | return type; |
135 | } | |
136 | ||
137 | 103 | public void setType(String type) { |
138 | 103 | this.type = type; |
139 | } | |
140 | ||
141 | /** | |
142 | * The current status of the requirement component. The values for this field are constrained to those in the reqComponentState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value. | |
143 | */ | |
144 | 23 | public String getState() { |
145 | 23 | return state; |
146 | } | |
147 | ||
148 | 101 | public void setState(String state) { |
149 | 101 | this.state = state; |
150 | } | |
151 | ||
152 | /** | |
153 | * Unique identifier for a requirement component. This is optional, due to the identifier being set at the time of creation. Once the requirement component has been created, this should be seen as required. | |
154 | */ | |
155 | 61 | public String getId() { |
156 | 61 | return id; |
157 | } | |
158 | ||
159 | 109 | public void setId(String id) { |
160 | 109 | this.id = id; |
161 | } | |
162 | ||
163 | 6 | public String getNaturalLanguageTranslation() { |
164 | 6 | return naturalLanguageTranslation; |
165 | } | |
166 | ||
167 | 0 | public void setNaturalLanguageTranslation(String naturalLanguageTranslation) { |
168 | 0 | this.naturalLanguageTranslation = naturalLanguageTranslation; |
169 | } | |
170 | ||
171 | 0 | @Override |
172 | public String toString() { | |
173 | 0 | return "ReqComponentInfo[id=" + id + ", type=" + type + ", state=" |
174 | + state + "]"; | |
175 | } | |
176 | } |
|