1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.lum.statement.service.impl; |
17 |
|
|
18 |
|
import static org.junit.Assert.assertEquals; |
19 |
|
|
20 |
|
import org.junit.BeforeClass; |
21 |
|
import org.junit.Test; |
22 |
|
import org.junit.runner.RunWith; |
23 |
|
import org.kuali.student.core.exceptions.DoesNotExistException; |
24 |
|
import org.kuali.student.core.exceptions.InvalidParameterException; |
25 |
|
import org.kuali.student.core.exceptions.MissingParameterException; |
26 |
|
import org.kuali.student.core.exceptions.OperationFailedException; |
27 |
|
import org.kuali.student.core.statement.service.StatementService; |
28 |
|
import org.springframework.beans.factory.annotation.Autowired; |
29 |
|
import org.springframework.test.context.ContextConfiguration; |
30 |
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
31 |
|
|
32 |
|
@RunWith(SpringJUnit4ClassRunner.class) |
33 |
|
@ContextConfiguration(locations={"classpath:statement-additional-context.xml"}) |
|
|
| 100% |
Uncovered Elements: 0 (133) |
Complexity: 45 |
Complexity Density: 0.51 |
|
34 |
|
public class TestStatementServiceImplForCourse { |
35 |
|
|
36 |
|
@Autowired |
37 |
|
public StatementService statementService; |
38 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
39 |
1
|
@BeforeClass... |
40 |
|
public static void beforeClass() { |
41 |
|
} |
42 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
43 |
1
|
@Test... |
44 |
|
public void testGetNaturalLanguageForReqComponent_DefaultEnglish() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
45 |
|
|
46 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-1", "KUALI.RULE", null); |
47 |
1
|
assertEquals("Must not have successfully completed MATH152", nl); |
48 |
|
} |
49 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
50 |
1
|
@Test... |
51 |
|
public void testGetNaturalLanguageForReqComponent_none1() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
52 |
|
|
53 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-1", "KUALI.RULE", "en"); |
54 |
1
|
assertEquals("Must not have successfully completed MATH152", nl); |
55 |
|
} |
56 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
57 |
1
|
@Test... |
58 |
|
public void testGetNaturalLanguageForReqComponent_noneN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
59 |
|
|
60 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-2", "KUALI.RULE", "en"); |
61 |
1
|
assertEquals("Must not have successfully completed any courses from (MATH152, MATH180)", nl); |
62 |
|
} |
63 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
64 |
1
|
@Test... |
65 |
|
public void testGetNaturalLanguageForReqComponent_all1() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
66 |
|
|
67 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-3", "KUALI.RULE", "en"); |
68 |
1
|
assertEquals("Must have successfully completed MATH152", nl); |
69 |
|
} |
70 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
71 |
1
|
@Test... |
72 |
|
public void testGetNaturalLanguageForReqComponent_allN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
73 |
|
|
74 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-4", "KUALI.RULE", "en"); |
75 |
1
|
assertEquals("Must have successfully completed all courses from (MATH152, MATH180)", nl); |
76 |
|
} |
77 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
78 |
1
|
@Test... |
79 |
|
public void testGetNaturalLanguageForReqComponent_1of1() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
80 |
|
|
81 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-5", "KUALI.RULE", "en"); |
82 |
1
|
assertEquals("Must have successfully completed MATH152", nl); |
83 |
|
} |
84 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
85 |
1
|
@Test... |
86 |
|
public void testGetNaturalLanguageForReqComponent_1ofN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
87 |
|
|
88 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-6", "KUALI.RULE", "en"); |
89 |
1
|
assertEquals("Must have successfully completed a minimum of 1 course from (MATH152, MATH180)", nl); |
90 |
|
} |
91 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
92 |
1
|
@Test... |
93 |
|
public void testGetNaturalLanguageForReqComponent_2ofN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
94 |
|
|
95 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-7", "KUALI.RULE", "en"); |
96 |
1
|
assertEquals("Must have successfully completed a minimum of 2 courses from (MATH152, MATH180)", nl); |
97 |
|
} |
98 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
99 |
1
|
@Test... |
100 |
|
public void testGetNaturalLanguageForReqComponent_enroll_1ofN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
101 |
|
|
102 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-8", "KUALI.RULE", "en"); |
103 |
1
|
assertEquals("Must be concurrently enrolled in a minimum of 1 course from (MATH152, MATH180)", nl); |
104 |
|
} |
105 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
106 |
1
|
@Test... |
107 |
|
public void testGetNaturalLanguageForReqComponent_enroll_2ofN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
108 |
|
|
109 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-9", "KUALI.RULE", "en"); |
110 |
1
|
assertEquals("Must be concurrently enrolled in a minimum of 2 courses from (MATH152, MATH180)", nl); |
111 |
|
} |
112 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
113 |
1
|
@Test... |
114 |
|
public void testGetNaturalLanguageForReqComponent_credits_1ofN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
115 |
|
|
116 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-10", "KUALI.RULE", "en"); |
117 |
1
|
assertEquals("Must have successfully completed a minimum of 1 credit from (MATH152, MATH180)", nl); |
118 |
|
} |
119 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
120 |
1
|
@Test... |
121 |
|
public void testGetNaturalLanguageForReqComponent_credits_2ofN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
122 |
|
|
123 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-11", "KUALI.RULE", "en"); |
124 |
1
|
assertEquals("Must have successfully completed a minimum of 2 credits from (MATH152, MATH180)", nl); |
125 |
|
} |
126 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
127 |
1
|
@Test... |
128 |
|
public void testGetNaturalLanguageForReqComponent_credits_none() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
129 |
|
|
130 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-12", "KUALI.RULE", "en"); |
131 |
1
|
assertEquals("Must not have successfully completed any credits from (MATH152, MATH180)", nl); |
132 |
|
} |
133 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
134 |
1
|
@Test... |
135 |
|
public void testGetNaturalLanguageForReqComponent_credits_max1() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
136 |
|
|
137 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-13", "KUALI.RULE", "en"); |
138 |
1
|
assertEquals("Must successfully complete no more than 1 credit from (MATH152, MATH180)", nl); |
139 |
|
} |
140 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
141 |
1
|
@Test... |
142 |
|
public void testGetNaturalLanguageForReqComponent_credits_max2() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
143 |
|
|
144 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-14", "KUALI.RULE", "en"); |
145 |
1
|
assertEquals("Must successfully complete no more than 2 credits from (MATH152, MATH180)", nl); |
146 |
|
} |
147 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
148 |
1
|
@Test... |
149 |
|
public void testGetNaturalLanguageForReqComponent_gradecheck() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
150 |
|
|
151 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-15", "KUALI.RULE", "en"); |
152 |
1
|
assertEquals("Must have earned a minimum GPA of 3.5 in (MATH152, MATH180)", nl); |
153 |
|
} |
154 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
155 |
1
|
@Test... |
156 |
|
public void testGetNaturalLanguageForReqComponent_grade_min_GradeType_Letter() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
157 |
|
|
158 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-16a", "KUALI.RULE", "en"); |
159 |
1
|
assertEquals("Must have earned a minimum grade of letter B in (MATH152, MATH180)", nl); |
160 |
|
} |
161 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
162 |
1
|
@Test... |
163 |
|
public void testGetNaturalLanguageForReqComponent_grade_min_GradeType_Percentage() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
164 |
|
|
165 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-16b", "KUALI.RULE", "en"); |
166 |
1
|
assertEquals("Must have earned a minimum grade of percentage 70-79% in (MATH152, MATH180)", nl); |
167 |
|
} |
168 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
169 |
1
|
@Test... |
170 |
|
public void testGetNaturalLanguageForReqComponent_grade_min_GradeType_PassFail() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
171 |
|
|
172 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-16c", "KUALI.RULE", "en"); |
173 |
1
|
assertEquals("Must have earned a minimum grade of Pass in (MATH152, MATH180)", nl); |
174 |
|
} |
175 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
176 |
1
|
@Test... |
177 |
|
public void testGetNaturalLanguageForReqComponent_grade_min_GradeType_CompletedNotation() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
178 |
|
|
179 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-16d", "KUALI.RULE", "en"); |
180 |
1
|
assertEquals("Must have earned a minimum grade of In-Progress in (MATH152, MATH180)", nl); |
181 |
|
} |
182 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
183 |
1
|
@Test... |
184 |
|
public void testGetNaturalLanguageForReqComponent_grade_min_GradeType_Satisfactory() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
185 |
|
|
186 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-16e", "KUALI.RULE", "en"); |
187 |
1
|
assertEquals("Must have earned a minimum grade of Satisfactory in (MATH152, MATH180)", nl); |
188 |
|
} |
189 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
190 |
1
|
@Test... |
191 |
|
public void testGetNaturalLanguageForReqComponent_grade_max_GradeType_Letter() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
192 |
|
|
193 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-17a", "KUALI.RULE", "en"); |
194 |
1
|
assertEquals("Must not have earned a maximum grade of letter C or higher in (MATH152, MATH180)", nl); |
195 |
|
} |
196 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
197 |
1
|
@Test... |
198 |
|
public void testGetNaturalLanguageForReqComponent_grade_max_GradeType_CompletedNotation() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
199 |
|
|
200 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-17b", "KUALI.RULE", "en"); |
201 |
1
|
assertEquals("Must not have earned a maximum grade of Not-Satisfactory or higher in (MATH152, MATH180)", nl); |
202 |
|
} |
203 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
204 |
1
|
@Test... |
205 |
|
public void testGetNaturalLanguageForReqComponent_perm_org() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
206 |
|
|
207 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-18", "KUALI.RULE", "en"); |
208 |
1
|
assertEquals("Permission of English Dept required", nl); |
209 |
|
} |
210 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
211 |
1
|
@Test... |
212 |
|
public void testGetNaturalLanguageForReqComponent_perm_instructor() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
213 |
|
|
214 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-19", "KUALI.RULE", "en"); |
215 |
1
|
assertEquals("Permission of instructor required", nl); |
216 |
|
} |
217 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
218 |
1
|
@Test... |
219 |
|
public void testGetNaturalLanguageForReqComponent_allN_CluSetOfClusets() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
220 |
|
|
221 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-20", "KUALI.RULE", "en"); |
222 |
1
|
assertEquals("Must have successfully completed all courses from (MATH152, MATH221, MATH180, MATH200, MATH215)", nl); |
223 |
|
} |
224 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
225 |
1
|
@Test... |
226 |
|
public void testGetNaturalLanguageForReqComponent_MinTestScoreOnTest() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
227 |
|
|
228 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-21", "KUALI.RULE", "en"); |
229 |
1
|
assertEquals("Must have achieved a minimum score of 600 on SAT Critical Reading Exam", nl); |
230 |
|
} |
231 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
232 |
1
|
@Test... |
233 |
|
public void testGetNaturalLanguageForReqComponent_MaxTestScoreOnTest() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
234 |
|
|
235 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-22", "KUALI.RULE", "en"); |
236 |
1
|
assertEquals("Must have achieved a score no higher than 900 on SAT Critical Reading Exam", nl); |
237 |
|
} |
238 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
239 |
1
|
@Test... |
240 |
|
public void testGetNaturalLanguageForReqComponent_MinCoursesMinGradeTest_GradeType_Letter() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
241 |
|
|
242 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-23a", "KUALI.RULE", "en"); |
243 |
1
|
assertEquals("Must successfully complete a minimum of 1 course with a minimum grade of letter B from (MATH152, MATH180)", nl); |
244 |
|
} |
245 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
246 |
1
|
@Test... |
247 |
|
public void testGetNaturalLanguageForReqComponent_MinCoursesMinGradeTest_GradeType_CompletedNotation() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
248 |
|
|
249 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-23b", "KUALI.RULE", "en"); |
250 |
1
|
assertEquals("Must successfully complete a minimum of 1 course with a minimum grade of Completed from (MATH152, MATH180)", nl); |
251 |
|
} |
252 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
253 |
1
|
@Test... |
254 |
|
public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_admitted_org_duration_ProgramAsClu() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
255 |
|
|
256 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-24a", "KUALI.RULE", "en"); |
257 |
1
|
assertEquals("Students admitted to Sociology may take no more than 2 courses in the English Dept in 1 year", nl); |
258 |
|
} |
259 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
260 |
1
|
@Test... |
261 |
|
public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_admitted_org_duration_ProgramAsCluSet() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
262 |
|
|
263 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-24b", "KUALI.RULE", "en"); |
264 |
1
|
assertEquals("Students admitted to Sociology may take no more than 2 courses in the English Dept in 1 year", nl); |
265 |
|
} |
266 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
267 |
1
|
@Test... |
268 |
|
public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_org_duration_ProgramAsClu() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
269 |
|
|
270 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-25a", "KUALI.RULE", "en"); |
271 |
1
|
assertEquals("Students not admitted to Sociology may take no more than 3 courses in the Computer Science Dept in 1 year", nl); |
272 |
|
} |
273 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
274 |
1
|
@Test... |
275 |
|
public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_org_duration_ProgramAsCluSet() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
276 |
|
|
277 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-25b", "KUALI.RULE", "en"); |
278 |
1
|
assertEquals("Students not admitted to Sociology may take no more than 3 courses in the Computer Science Dept in 1 year", nl); |
279 |
|
} |
280 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
281 |
1
|
@Test... |
282 |
|
public void testGetNaturalLanguageForReqComponent_kuali_reqComponent_type_course_org_program_admitted() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
283 |
|
|
284 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-26", "KUALI.RULE", "en"); |
285 |
1
|
assertEquals("Must be admitted to any program offered at the course campus location", nl); |
286 |
|
} |
287 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
288 |
1
|
@Test... |
289 |
|
public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_ProgramAsClu() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
290 |
|
|
291 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-27a", "KUALI.RULE", "en"); |
292 |
1
|
assertEquals("Must not have been admitted to the Sociology program", nl); |
293 |
|
} |
294 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
295 |
1
|
@Test... |
296 |
|
public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_ProgramAsCluSet() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
297 |
|
|
298 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-27b", "KUALI.RULE", "en"); |
299 |
1
|
assertEquals("Must not have been admitted to the Sociology program", nl); |
300 |
|
} |
301 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
302 |
1
|
@Test... |
303 |
|
public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_credits_repeat_max() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
304 |
|
|
305 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-28", "KUALI.RULE", "en"); |
306 |
1
|
assertEquals("May be repeated for a maximum of 6 credits", nl); |
307 |
|
} |
308 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
309 |
1
|
@Test... |
310 |
|
public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_org_credits_completed_min() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
311 |
|
|
312 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-29", "KUALI.RULE", "en"); |
313 |
1
|
assertEquals("Must have successfully completed a minimum of 30 credits from courses in the Computer Science Dept", nl); |
314 |
|
} |
315 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
316 |
1
|
@Test... |
317 |
|
public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_admitted_ProgramAsClu() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
318 |
|
|
319 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-30a", "KUALI.RULE", "en"); |
320 |
1
|
assertEquals("Must have been admitted to the Sociology program", nl); |
321 |
|
} |
322 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
323 |
1
|
@Test... |
324 |
|
public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_admitted_ProgramAsCluSet() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
325 |
|
|
326 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-30b", "KUALI.RULE", "en"); |
327 |
1
|
assertEquals("Must have been admitted to the Sociology program", nl); |
328 |
|
} |
329 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
330 |
1
|
@Test... |
331 |
|
public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_completed() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
332 |
|
|
333 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-31", "KUALI.RULE", "en"); |
334 |
1
|
assertEquals("Must have successfully completed MATH152", nl); |
335 |
|
} |
336 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
337 |
1
|
@Test... |
338 |
|
public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_enrolled() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
339 |
|
|
340 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-32", "KUALI.RULE", "en"); |
341 |
1
|
assertEquals("Must be concurrently enrolled in MATH152", nl); |
342 |
|
} |
343 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
344 |
1
|
@Test... |
345 |
|
public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_notcompleted() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
346 |
|
|
347 |
1
|
String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-33", "KUALI.RULE", "en"); |
348 |
1
|
assertEquals("Must not have successfully completed MATH152", nl); |
349 |
|
} |
350 |
|
} |