Clover Coverage Report - KS LUM 1.1.0-SNAPSHOT (Aggregated)
Coverage timestamp: Tue Feb 15 2011 05:34:20 EST
88   350   45   1.96
0   242   0.51   45
45     1  
1    
 
  TestStatementServiceImplForCourse       Line # 34 88 0% 45 0 100% 1.0
 
  (44)
 
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.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"})
 
34    public class TestStatementServiceImplForCourse {
35   
36    @Autowired
37    public StatementService statementService;
38   
 
39  1 toggle @BeforeClass
40    public static void beforeClass() {
41    }
42   
 
43  1 toggle @Test
44    public void testGetNaturalLanguageForReqComponent_DefaultEnglish() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
45    //req. type: 'kuali.reqComponent.type.course.courseset.completed.none'
46  1 String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-1", "KUALI.RULE", null);
47  1 assertEquals("Must not have successfully completed MATH152", nl);
48    }
49   
 
50  1 toggle @Test
51    public void testGetNaturalLanguageForReqComponent_none1() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
52    //req. type: 'kuali.reqComponent.type.course.courseset.completed.none'
53  1 String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-1", "KUALI.RULE", "en");
54  1 assertEquals("Must not have successfully completed MATH152", nl);
55    }
56   
 
57  1 toggle @Test
58    public void testGetNaturalLanguageForReqComponent_noneN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
59    //req. type: 'kuali.reqComponent.type.course.courseset.completed.none'
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   
 
64  1 toggle @Test
65    public void testGetNaturalLanguageForReqComponent_all1() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
66    //req. type: 'kuali.reqComponent.type.course.courseset.completed.all'
67  1 String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-3", "KUALI.RULE", "en");
68  1 assertEquals("Must have successfully completed MATH152", nl);
69    }
70   
 
71  1 toggle @Test
72    public void testGetNaturalLanguageForReqComponent_allN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
73    //req. type: 'kuali.reqComponent.type.course.courseset.completed.all'
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   
 
78  1 toggle @Test
79    public void testGetNaturalLanguageForReqComponent_1of1() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
80    //req. type: 'kuali.reqComponent.type.course.courseset.completed.nof '
81  1 String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-5", "KUALI.RULE", "en");
82  1 assertEquals("Must have successfully completed MATH152", nl);
83    }
84   
 
85  1 toggle @Test
86    public void testGetNaturalLanguageForReqComponent_1ofN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
87    //req. type: 'kuali.reqComponent.type.course.courseset.completed.nof '
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   
 
92  1 toggle @Test
93    public void testGetNaturalLanguageForReqComponent_2ofN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
94    //req. type: 'kuali.reqComponent.type.course.courseset.completed.nof '
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   
 
99  1 toggle @Test
100    public void testGetNaturalLanguageForReqComponent_enroll_1ofN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
101    //req. type: 'kuali.reqComponent.type.course.courseset.enrolled.nof'
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   
 
106  1 toggle @Test
107    public void testGetNaturalLanguageForReqComponent_enroll_2ofN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
108    //req. type: 'kuali.reqComponent.type.course.courseset.enrolled.nof'
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   
 
113  1 toggle @Test
114    public void testGetNaturalLanguageForReqComponent_credits_1ofN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
115    //req. type: 'kuali.reqComponent.type.course.courseset.credits.completed.nof'
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   
 
120  1 toggle @Test
121    public void testGetNaturalLanguageForReqComponent_credits_2ofN() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
122    //req. type: 'kuali.reqComponent.type.course.courseset.credits.completed.nof'
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   
 
127  1 toggle @Test
128    public void testGetNaturalLanguageForReqComponent_credits_none() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
129    //req. type: 'kuali.reqComponent.type.course.courseset.credits.completed.none'
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   
 
134  1 toggle @Test
135    public void testGetNaturalLanguageForReqComponent_credits_max1() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
136    //req. type: 'kuali.reqComponent.type.course.courseset.credits.completed.max'
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   
 
141  1 toggle @Test
142    public void testGetNaturalLanguageForReqComponent_credits_max2() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
143    //req. type: 'kuali.reqComponent.type.course.courseset.credits.completed.max'
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   
 
148  1 toggle @Test
149    public void testGetNaturalLanguageForReqComponent_gradecheck() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
150    //req. type: 'kuali.reqComponent.type.course.courseset.gpa.min'
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   
 
155  1 toggle @Test
156    public void testGetNaturalLanguageForReqComponent_grade_min_GradeType_Letter() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
157    //req. type: 'kuali.reqComponent.type.course.courseset.grade.min'
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   
 
162  1 toggle @Test
163    public void testGetNaturalLanguageForReqComponent_grade_min_GradeType_Percentage() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
164    //req. type: 'kuali.reqComponent.type.course.courseset.grade.min'
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   
 
169  1 toggle @Test
170    public void testGetNaturalLanguageForReqComponent_grade_min_GradeType_PassFail() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
171    //req. type: 'kuali.reqComponent.type.course.courseset.grade.min'
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   
 
176  1 toggle @Test
177    public void testGetNaturalLanguageForReqComponent_grade_min_GradeType_CompletedNotation() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
178    //req. type: 'kuali.reqComponent.type.course.courseset.grade.min'
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   
 
183  1 toggle @Test
184    public void testGetNaturalLanguageForReqComponent_grade_min_GradeType_Satisfactory() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
185    //req. type: 'kuali.reqComponent.type.course.courseset.grade.min'
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   
 
190  1 toggle @Test
191    public void testGetNaturalLanguageForReqComponent_grade_max_GradeType_Letter() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
192    //req. type: 'kuali.reqComponent.type.course.courseset.grade.max'
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   
 
197  1 toggle @Test
198    public void testGetNaturalLanguageForReqComponent_grade_max_GradeType_CompletedNotation() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
199    //req. type: 'kuali.reqComponent.type.course.courseset.grade.max'
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   
 
204  1 toggle @Test
205    public void testGetNaturalLanguageForReqComponent_perm_org() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
206    //req. type: 'kuali.reqComponent.type.course.permission.org.required'
207  1 String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-18", "KUALI.RULE", "en");
208  1 assertEquals("Permission of English Dept required", nl);
209    }
210   
 
211  1 toggle @Test
212    public void testGetNaturalLanguageForReqComponent_perm_instructor() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
213    //req. type: 'kuali.reqComponent.type.course.permission.instructor.required'
214  1 String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-19", "KUALI.RULE", "en");
215  1 assertEquals("Permission of instructor required", nl);
216    }
217   
 
218  1 toggle @Test
219    public void testGetNaturalLanguageForReqComponent_allN_CluSetOfClusets() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
220    //req. type: 'kuali.reqComponent.type.course.courseset.completed.all'
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   
 
225  1 toggle @Test
226    public void testGetNaturalLanguageForReqComponent_MinTestScoreOnTest() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
227    //req. type: 'kuali.reqComponent.type.course.test.score.min'
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   
 
232  1 toggle @Test
233    public void testGetNaturalLanguageForReqComponent_MaxTestScoreOnTest() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
234    //req. type: 'kuali.reqComponent.type.course.test.score.max'
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   
 
239  1 toggle @Test
240    public void testGetNaturalLanguageForReqComponent_MinCoursesMinGradeTest_GradeType_Letter() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
241    //req. type: 'kuali.reqComponent.type.course.courseset.nof.grade.min'
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   
 
246  1 toggle @Test
247    public void testGetNaturalLanguageForReqComponent_MinCoursesMinGradeTest_GradeType_CompletedNotation() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
248    //req. type: 'kuali.reqComponent.type.course.courseset.nof.grade.min'
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   
 
253  1 toggle @Test
254    public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_admitted_org_duration_ProgramAsClu() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
255    //req. type: 'kuali.reqComponent.type.course.program.admitted.org.duration'
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   
 
260  1 toggle @Test
261    public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_admitted_org_duration_ProgramAsCluSet() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
262    //req. type: 'kuali.reqComponent.type.course.program.admitted.org.duration'
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   
 
267  1 toggle @Test
268    public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_org_duration_ProgramAsClu() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
269    //req. type: 'kuali.reqComponent.type.course.program.notadmitted.org.duration'
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   
 
274  1 toggle @Test
275    public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_org_duration_ProgramAsCluSet() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
276    //req. type: 'kuali.reqComponent.type.course.program.notadmitted.org.duration'
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   
 
281  1 toggle @Test
282    public void testGetNaturalLanguageForReqComponent_kuali_reqComponent_type_course_org_program_admitted() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
283    //req. type: 'kuali.reqComponent.type.course.org.program.admitted'
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   
 
288  1 toggle @Test
289    public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_ProgramAsClu() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
290    //req. type: 'kuali.reqComponent.type.course.program.notadmitted'
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   
 
295  1 toggle @Test
296    public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_ProgramAsCluSet() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
297    //req. type: 'kuali.reqComponent.type.course.program.notadmitted'
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   
 
302  1 toggle @Test
303    public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_credits_repeat_max() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
304    //req. type: 'kuali.reqComponent.type.course.credits.repeat.max'
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   
 
309  1 toggle @Test
310    public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_org_credits_completed_min() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
311    //req. type: 'kuali.reqComponent.type.course.org.credits.completed.min'
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   
 
316  1 toggle @Test
317    public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_admitted_ProgramAsClu() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
318    //req. type: 'kuali.reqComponent.type.course.program.admitted'
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   
 
323  1 toggle @Test
324    public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_admitted_ProgramAsCluSet() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
325    //req. type: 'kuali.reqComponent.type.course.program.admitted'
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   
 
330  1 toggle @Test
331    public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_completed() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
332    //req. type: 'kuali.reqComponent.type.course.completed'
333  1 String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-31", "KUALI.RULE", "en");
334  1 assertEquals("Must have successfully completed MATH152", nl);
335    }
336   
 
337  1 toggle @Test
338    public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_enrolled() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
339    //req. type: 'kuali.reqComponent.type.course.enrolled'
340  1 String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-32", "KUALI.RULE", "en");
341  1 assertEquals("Must be concurrently enrolled in MATH152", nl);
342    }
343   
 
344  1 toggle @Test
345    public void testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_notcompleted() throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
346    //req. type: 'kuali.reqComponent.type.course.notcompleted'
347  1 String nl = statementService.getNaturalLanguageForReqComponent("REQCOMP-33", "KUALI.RULE", "en");
348  1 assertEquals("Must not have successfully completed MATH152", nl);
349    }
350    }