|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ResultComponentInfo | Line # 48 | 24 | 0% | 22 | 0 | 100% |
1.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
(31) | |||
Result | |||
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse
![]() |
1 PASS | |
0.9583333
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.lrc.service.impl.TestLrcServiceImpl.testResultComponentCrud
![]() |
1 PASS | |
0.875
|
org.kuali.student.lum.course.service.impl.TestCourseInfoDictionary.testCourseInfoValidation
![]() |
1 PASS | |
0.6666667
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing
![]() |
1 PASS | |
0.6666667
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions
![]() |
1 PASS | |
0.6666667
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning
![]() |
1 PASS | |
0.6666667
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate
![]() |
1 PASS | |
0.6666667
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber
![]() |
1 PASS | |
0.6666667
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse
![]() |
1 PASS | |
0.6666667
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange
![]() |
1 PASS | |
0.6666667
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion
![]() |
1 PASS | |
0.6666667
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse
![]() |
1 PASS | |
0.6666667
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion
![]() |
1 PASS | |
0.625
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes
![]() |
1 PASS | |
0.5833333
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_Letter
![]() |
1 PASS | |
0.5833333
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_Percentage
![]() |
1 PASS | |
0.5833333
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_MinCoursesMinGradeTest_GradeType_Letter
![]() |
1 PASS | |
0.5833333
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_max_GradeType_Letter
![]() |
1 PASS | |
0.5416667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_max_GradeType_CompletedNotation
![]() |
1 PASS | |
0.5416667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_MinCoursesMinGradeTest_GradeType_CompletedNotation
![]() |
1 PASS | |
0.5416667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_PassFail
![]() |
1 PASS | |
0.5416667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_Satisfactory
![]() |
1 PASS | |
0.5416667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_CompletedNotation
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.lrc.service.impl.TestLrcServiceImpl.testGetResultComponent
![]() |
1 PASS | |
0.125
|
org.kuali.student.lum.statement.config.context.LrcContextImplTest.testCreateContextMap_GradeTokenValues
![]() |
1 PASS | |
0.125
|
org.kuali.student.lum.statement.config.context.LrcContextImplTest.testCreateContextMap_TokenValues
![]() |
1 PASS | |
0.083333336
|
org.kuali.student.lum.statement.config.context.LrcContextImplTest.testCreateContextMap_GradeToken
![]() |
1 PASS | |
0.083333336
|
org.kuali.student.lum.statement.config.context.LrcContextImplTest.testCreateContextMap
![]() |
1 PASS | |
0.041666668
|
org.kuali.student.lum.statement.config.context.LrcContextImplTest.testCreateContextMap_GradeTypeTokenValues
![]() |
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.lum.lrc.dto; | |
17 | ||
18 | import java.io.Serializable; | |
19 | import java.util.ArrayList; | |
20 | import java.util.Date; | |
21 | import java.util.HashMap; | |
22 | import java.util.List; | |
23 | import java.util.Map; | |
24 | ||
25 | import javax.xml.bind.annotation.XmlAccessType; | |
26 | import javax.xml.bind.annotation.XmlAccessorType; | |
27 | import javax.xml.bind.annotation.XmlAttribute; | |
28 | import javax.xml.bind.annotation.XmlElement; | |
29 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | |
30 | ||
31 | import org.kuali.student.common.dto.HasAttributes; | |
32 | import org.kuali.student.common.dto.HasTypeState; | |
33 | import org.kuali.student.common.dto.Idable; | |
34 | import org.kuali.student.common.dto.MetaInfo; | |
35 | import org.kuali.student.common.dto.RichTextInfo; | |
36 | import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; | |
37 | ||
38 | /** | |
39 | * Detailed information about a result component. | |
40 | * | |
41 | * @Author KSContractMojo | |
42 | * @Author lindholm | |
43 | * @Since Tue Apr 21 13:47:47 PDT 2009 | |
44 | * @See <a href="https://test.kuali.org/confluence/display/KULSTU/resultComponentInfo+Structure">ResultComponentInfo</> | |
45 | * | |
46 | */ | |
47 | @XmlAccessorType(XmlAccessType.FIELD) | |
48 | public class ResultComponentInfo implements Serializable, Idable, HasTypeState, HasAttributes { | |
49 | ||
50 | private static final long serialVersionUID = 1L; | |
51 | ||
52 | @XmlElement | |
53 | private String name; | |
54 | ||
55 | @XmlElement | |
56 | private RichTextInfo desc; | |
57 | ||
58 | @XmlElement | |
59 | private List<String> resultValues; | |
60 | ||
61 | @XmlElement | |
62 | private Date effectiveDate; | |
63 | ||
64 | @XmlElement | |
65 | private Date expirationDate; | |
66 | ||
67 | @XmlElement | |
68 | @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) | |
69 | private Map<String, String> attributes; | |
70 | ||
71 | @XmlElement | |
72 | private MetaInfo metaInfo; | |
73 | ||
74 | @XmlAttribute | |
75 | private String type; | |
76 | ||
77 | @XmlAttribute | |
78 | private String state; | |
79 | ||
80 | @XmlAttribute | |
81 | private String id; | |
82 | ||
83 | /** | |
84 | * Friendly name of the result component | |
85 | */ | |
86 | 31 |
![]() |
87 | 31 | return name; |
88 | } | |
89 | ||
90 | 162 |
![]() |
91 | 162 | this.name = name; |
92 | } | |
93 | ||
94 | /** | |
95 | * Narrative description of the result component | |
96 | */ | |
97 | 29 |
![]() |
98 | 29 | return desc; |
99 | } | |
100 | ||
101 | 148 |
![]() |
102 | 148 | this.desc = desc; |
103 | } | |
104 | ||
105 | /** | |
106 | * List of result values | |
107 | */ | |
108 | 210 |
![]() |
109 | 210 | if (resultValues == null) { |
110 | 1 | resultValues = new ArrayList<String>(0); |
111 | } | |
112 | 210 | return resultValues; |
113 | } | |
114 | ||
115 | 167 |
![]() |
116 | 167 | this.resultValues = resultValues; |
117 | } | |
118 | ||
119 | /** | |
120 | * Date and time that this result 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. | |
121 | */ | |
122 | 29 |
![]() |
123 | 29 | return effectiveDate; |
124 | } | |
125 | ||
126 | 148 |
![]() |
127 | 148 | this.effectiveDate = effectiveDate; |
128 | } | |
129 | ||
130 | /** | |
131 | * Date and time that this result component expires. This is a similar concept to the expiration date on enumerated values. If specified, this should 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. | |
132 | */ | |
133 | 29 |
![]() |
134 | 29 | return expirationDate; |
135 | } | |
136 | ||
137 | 148 |
![]() |
138 | 148 | this.expirationDate = expirationDate; |
139 | } | |
140 | ||
141 | /** | |
142 | * List of key/value pairs, typically used for dynamic attributes. | |
143 | */ | |
144 | 173 |
![]() |
145 | 173 | if (attributes == null) { |
146 | 2 | attributes = new HashMap<String, String>(); |
147 | } | |
148 | 173 | return attributes; |
149 | } | |
150 | ||
151 | 150 |
![]() |
152 | 150 | this.attributes = attributes; |
153 | } | |
154 | ||
155 | /** | |
156 | * 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. | |
157 | */ | |
158 | 23 |
![]() |
159 | 23 | return metaInfo; |
160 | } | |
161 | ||
162 | 116 |
![]() |
163 | 116 | this.metaInfo = metaInfo; |
164 | } | |
165 | ||
166 | /** | |
167 | * Unique identifier for a result component type. | |
168 | */ | |
169 | 95 |
![]() |
170 | 95 | return type; |
171 | } | |
172 | ||
173 | 156 |
![]() |
174 | 156 | this.type = type; |
175 | } | |
176 | ||
177 | /** | |
178 | * The current status of the result component. The values for this field are constrained to those in the state enumeration. A separate setup operation does not exist for retrieval of the meta data around this value. | |
179 | */ | |
180 | 29 |
![]() |
181 | 29 | return state; |
182 | } | |
183 | ||
184 | 152 |
![]() |
185 | 152 | this.state = state; |
186 | } | |
187 | ||
188 | /** | |
189 | * Unique identifier for a result component. This is optional, due to the identifier being set at the time of creation. Once the result component has been created, this should be seen as required. | |
190 | */ | |
191 | 124 |
![]() |
192 | 124 | return id; |
193 | } | |
194 | ||
195 | 214 |
![]() |
196 | 214 | this.id = id; |
197 | } | |
198 | } |
|