| 1 |
|
package org.kuali.student.lum.statement.service.impl; |
| 2 |
|
|
| 3 |
|
import java.util.List; |
| 4 |
|
|
| 5 |
|
import org.junit.Assert; |
| 6 |
|
import org.junit.Test; |
| 7 |
|
import org.kuali.student.common.exceptions.DoesNotExistException; |
| 8 |
|
import org.kuali.student.common.test.spring.AbstractTransactionalDaoTest; |
| 9 |
|
import org.kuali.student.common.test.spring.Dao; |
| 10 |
|
import org.kuali.student.common.test.spring.PersistenceFileLocation; |
| 11 |
|
import org.kuali.student.core.statement.dao.StatementDao; |
| 12 |
|
import org.kuali.student.core.statement.entity.NlUsageType; |
| 13 |
|
import org.kuali.student.core.statement.entity.OrderedReqComponentType; |
| 14 |
|
import org.kuali.student.core.statement.entity.OrderedStatementType; |
| 15 |
|
import org.kuali.student.core.statement.entity.ReqComponentFieldType; |
| 16 |
|
import org.kuali.student.core.statement.entity.ReqComponentType; |
| 17 |
|
import org.kuali.student.core.statement.entity.ReqComponentTypeNLTemplate; |
| 18 |
|
import org.kuali.student.core.statement.entity.StatementType; |
| 19 |
|
|
| 20 |
|
@PersistenceFileLocation("classpath:META-INF/statement-persistence.xml") |
|
|
|
| 99.2% |
Uncovered Elements: 4 (504) |
Complexity: 117 |
Complexity Density: 0.31 |
|
| 21 |
|
public class TestStatementServiceConfiguration extends AbstractTransactionalDaoTest { |
| 22 |
|
@Dao(value = "org.kuali.student.core.statement.dao.impl.StatementDaoImpl", testSqlFile = "classpath:ks-statement.sql") |
| 23 |
|
public StatementDao dao; |
| 24 |
|
|
|
|
|
| 83.3% |
Uncovered Elements: 1 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 25 |
11
|
private boolean containsStatementType(List<OrderedStatementType> typeList, String id) {... |
| 26 |
11
|
for(OrderedStatementType type : typeList) { |
| 27 |
22
|
if(type.getChildStatementType().getId().equals(id)) { |
| 28 |
11
|
return true; |
| 29 |
|
} |
| 30 |
|
} |
| 31 |
0
|
return false; |
| 32 |
|
} |
| 33 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 34 |
1
|
@Test... |
| 35 |
|
public void testStatementTypeCount() { |
| 36 |
1
|
List<StatementType> statementTypes = this.dao.find(StatementType.class); |
| 37 |
1
|
Assert.assertEquals(15, statementTypes.size()); |
| 38 |
|
} |
| 39 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 40 |
1
|
@Test... |
| 41 |
|
public void testValidStatementSubTypesForCourse() throws DoesNotExistException { |
| 42 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course"); |
| 43 |
1
|
List<OrderedStatementType> subTypes = statementType.getAllowedStatementTypes(); |
| 44 |
1
|
Assert.assertTrue(containsStatementType(subTypes, "kuali.statement.type.course.enrollmentEligibility")); |
| 45 |
1
|
Assert.assertTrue(containsStatementType(subTypes, "kuali.statement.type.course.creditConstraints")); |
| 46 |
|
} |
| 47 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
1
PASS
|
|
| 48 |
1
|
@Test... |
| 49 |
|
public void testValidStatementSubTypesForEnrollmentEligibility() throws DoesNotExistException { |
| 50 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.enrollmentEligibility"); |
| 51 |
1
|
List<OrderedStatementType> subTypes = statementType.getAllowedStatementTypes(); |
| 52 |
1
|
Assert.assertTrue(containsStatementType(subTypes, "kuali.statement.type.course.academicReadiness.studentEligibilityPrereq")); |
| 53 |
1
|
Assert.assertTrue(containsStatementType(subTypes, "kuali.statement.type.course.academicReadiness.coreq")); |
| 54 |
1
|
Assert.assertTrue(containsStatementType(subTypes, "kuali.statement.type.course.recommendedPreparation")); |
| 55 |
1
|
Assert.assertTrue(containsStatementType(subTypes, "kuali.statement.type.course.academicReadiness.antireq")); |
| 56 |
|
} |
| 57 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 58 |
1
|
@Test... |
| 59 |
|
public void testValidStatementSubTypesForCreditConstraints() throws DoesNotExistException { |
| 60 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.creditConstraints"); |
| 61 |
1
|
List<OrderedStatementType> subTypes = statementType.getAllowedStatementTypes(); |
| 62 |
1
|
Assert.assertTrue(containsStatementType(subTypes, "kuali.statement.type.course.credit.restriction")); |
| 63 |
1
|
Assert.assertTrue(containsStatementType(subTypes, "kuali.statement.type.course.credit.repeatable")); |
| 64 |
|
} |
| 65 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
1
PASS
|
|
| 66 |
1
|
@Test... |
| 67 |
|
public void testValidStatementSubTypesForProgram() throws DoesNotExistException { |
| 68 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.program"); |
| 69 |
1
|
List<OrderedStatementType> subTypes = statementType.getAllowedStatementTypes(); |
| 70 |
1
|
Assert.assertTrue(containsStatementType(subTypes, "kuali.statement.type.program.entrance")); |
| 71 |
1
|
Assert.assertTrue(containsStatementType(subTypes, "kuali.statement.type.program.satisfactoryProgress")); |
| 72 |
1
|
Assert.assertTrue(containsStatementType(subTypes, "kuali.statement.type.program.completion")); |
| 73 |
|
} |
| 74 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 75 |
1
|
@Test... |
| 76 |
|
public void testStatementSubTypesForCourseStatementType() throws DoesNotExistException { |
| 77 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course"); |
| 78 |
1
|
Assert.assertEquals(2, statementType.getAllowedStatementTypes().size()); |
| 79 |
|
} |
| 80 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 81 |
1
|
@Test... |
| 82 |
|
public void testStatementSubTypesForProgramStatementType() throws DoesNotExistException { |
| 83 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.program"); |
| 84 |
1
|
Assert.assertEquals(3, statementType.getAllowedStatementTypes().size()); |
| 85 |
|
} |
| 86 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 87 |
1
|
@Test... |
| 88 |
|
public void testReqComponentTypeCount() { |
| 89 |
1
|
List<ReqComponentType> reqComponentTypes = this.dao.find(ReqComponentType.class); |
| 90 |
1
|
Assert.assertEquals(42, reqComponentTypes.size()); |
| 91 |
|
} |
| 92 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 93 |
1
|
@Test... |
| 94 |
|
public void testReqComponentFieldTypeCount() { |
| 95 |
1
|
List<ReqComponentFieldType> reqComponentFieldTypes = this.dao.find(ReqComponentFieldType.class); |
| 96 |
1
|
Assert.assertEquals(18, reqComponentFieldTypes.size()); |
| 97 |
|
} |
| 98 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 99 |
1
|
@Test... |
| 100 |
|
public void testReqComponentTypeNLTemplateCount() { |
| 101 |
1
|
List<ReqComponentTypeNLTemplate> reqComponentTypeNLTemplates = this.dao.find(ReqComponentTypeNLTemplate.class); |
| 102 |
1
|
Assert.assertEquals(168, reqComponentTypeNLTemplates.size()); |
| 103 |
|
} |
| 104 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 105 |
1
|
@Test... |
| 106 |
|
public void testNlUsageTypeCount() { |
| 107 |
1
|
List<NlUsageType> nlUsageTypes = this.dao.find(NlUsageType.class); |
| 108 |
1
|
Assert.assertEquals(5, nlUsageTypes.size()); |
| 109 |
|
} |
| 110 |
|
|
|
|
|
| 83.3% |
Uncovered Elements: 1 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 111 |
5
|
private boolean containsNlUsageType(List<NlUsageType> typeList, String id) {... |
| 112 |
5
|
for(NlUsageType type : typeList) { |
| 113 |
15
|
if(type.getId().equals(id)) { |
| 114 |
5
|
return true; |
| 115 |
|
} |
| 116 |
|
} |
| 117 |
0
|
return false; |
| 118 |
|
} |
| 119 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
1
PASS
|
|
| 120 |
1
|
@Test... |
| 121 |
|
public void testValidNlUsageTypes() { |
| 122 |
1
|
List<NlUsageType> nlUsageTypes = this.dao.find(NlUsageType.class); |
| 123 |
1
|
Assert.assertTrue(containsNlUsageType(nlUsageTypes, "KUALI.CATALOG")); |
| 124 |
1
|
Assert.assertTrue(containsNlUsageType(nlUsageTypes, "KUALI.RULE")); |
| 125 |
1
|
Assert.assertTrue(containsNlUsageType(nlUsageTypes, "KUALI.RULE.PREVIEW")); |
| 126 |
1
|
Assert.assertTrue(containsNlUsageType(nlUsageTypes, "KUALI.RULE.EXAMPLE")); |
| 127 |
1
|
Assert.assertTrue(containsNlUsageType(nlUsageTypes, "KUALI.RULE.COMPOSITION")); |
| 128 |
|
} |
| 129 |
|
|
|
|
|
| 83.3% |
Uncovered Elements: 1 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 130 |
65
|
private boolean containsReqComponentType(List<OrderedReqComponentType> typeList, String id) {... |
| 131 |
65
|
for(OrderedReqComponentType type : typeList) { |
| 132 |
418
|
if(type.getReqComponentType().getId().equals(id)) { |
| 133 |
65
|
return true; |
| 134 |
|
} |
| 135 |
|
} |
| 136 |
0
|
return false; |
| 137 |
|
} |
| 138 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 139 |
1
|
@Test... |
| 140 |
|
public void testReqComponentTypesForAntireqType() throws DoesNotExistException { |
| 141 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.academicReadiness.antireq"); |
| 142 |
1
|
Assert.assertEquals(5, statementType.getAllowedReqComponentTypes().size()); |
| 143 |
|
} |
| 144 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (7) |
Complexity: 1 |
Complexity Density: 0.14 |
1
PASS
|
|
| 145 |
1
|
@Test... |
| 146 |
|
public void testValidReqComponentTypesForAntireqType() throws DoesNotExistException { |
| 147 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.academicReadiness.antireq"); |
| 148 |
1
|
List<OrderedReqComponentType> types = statementType.getAllowedReqComponentTypes(); |
| 149 |
1
|
Assert.assertEquals("kuali.reqComponent.type.course.notcompleted", types.get(0).getReqComponentType().getId()); |
| 150 |
1
|
Assert.assertEquals("kuali.reqComponent.type.course.courseset.completed.none", types.get(1).getReqComponentType().getId()); |
| 151 |
1
|
Assert.assertEquals("kuali.reqComponent.type.course.courseset.credits.completed.none", types.get(2).getReqComponentType().getId()); |
| 152 |
1
|
Assert.assertEquals("kuali.reqComponent.type.course.courseset.credits.completed.max", types.get(3).getReqComponentType().getId()); |
| 153 |
1
|
Assert.assertEquals("kuali.reqComponent.type.course.test.score.max", types.get(4).getReqComponentType().getId()); |
| 154 |
|
} |
| 155 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 156 |
1
|
@Test... |
| 157 |
|
public void testReqComponentTypesForPrereqType() throws DoesNotExistException { |
| 158 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.academicReadiness.prereq"); |
| 159 |
1
|
Assert.assertEquals(13, statementType.getAllowedReqComponentTypes().size()); |
| 160 |
|
} |
| 161 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (14) |
Complexity: 1 |
Complexity Density: 0.07 |
1
PASS
|
|
| 162 |
1
|
@Test... |
| 163 |
|
public void testValidReqComponentTypesForPrereqType() throws DoesNotExistException { |
| 164 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.academicReadiness.prereq"); |
| 165 |
1
|
List<OrderedReqComponentType> types = statementType.getAllowedReqComponentTypes(); |
| 166 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.completed.all")); |
| 167 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.completed.nof")); |
| 168 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.credits.completed.nof")); |
| 169 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.gpa.min")); |
| 170 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.grade.min")); |
| 171 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.grade.max")); |
| 172 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.permission.org.required")); |
| 173 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.permission.instructor.required")); |
| 174 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.test.score.min")); |
| 175 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.nof.grade.min")); |
| 176 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.program.admitted.org.duration")); |
| 177 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.org.credits.completed.min")); |
| 178 |
|
} |
| 179 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 180 |
1
|
@Test... |
| 181 |
|
public void testReqComponentTypesForCoreqType() throws DoesNotExistException { |
| 182 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.academicReadiness.coreq"); |
| 183 |
1
|
Assert.assertEquals(2, statementType.getAllowedReqComponentTypes().size()); |
| 184 |
|
} |
| 185 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 186 |
1
|
@Test... |
| 187 |
|
public void testValidReqComponentTypesForCoreqType() throws DoesNotExistException { |
| 188 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.academicReadiness.coreq"); |
| 189 |
1
|
List<OrderedReqComponentType> types = statementType.getAllowedReqComponentTypes(); |
| 190 |
|
|
| 191 |
|
|
| 192 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.enrolled.nof")); |
| 193 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.enrolled")); |
| 194 |
|
} |
| 195 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 196 |
1
|
@Test... |
| 197 |
|
public void testReqComponentTypesForStudentEligibilityType() throws DoesNotExistException { |
| 198 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.academicReadiness.studentEligibility"); |
| 199 |
1
|
Assert.assertEquals(4, statementType.getAllowedReqComponentTypes().size()); |
| 200 |
|
} |
| 201 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
1
PASS
|
|
| 202 |
1
|
@Test... |
| 203 |
|
public void testValidReqComponentTypesForStudentEligibilityType() throws DoesNotExistException { |
| 204 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.academicReadiness.studentEligibilityPrereq"); |
| 205 |
1
|
List<OrderedReqComponentType> types = statementType.getAllowedReqComponentTypes(); |
| 206 |
|
|
| 207 |
|
|
| 208 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.program.notadmitted.org.duration")); |
| 209 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.org.program.admitted")); |
| 210 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.program.notadmitted")); |
| 211 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.program.admitted")); |
| 212 |
|
} |
| 213 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 214 |
1
|
@Test... |
| 215 |
|
public void testReqComponentTypesForStudentEligibilityPreReqType() throws DoesNotExistException { |
| 216 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.academicReadiness.studentEligibilityPrereq"); |
| 217 |
1
|
Assert.assertEquals(17, statementType.getAllowedReqComponentTypes().size()); |
| 218 |
|
} |
| 219 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (19) |
Complexity: 1 |
Complexity Density: 0.05 |
1
PASS
|
|
| 220 |
1
|
@Test... |
| 221 |
|
public void testValidReqComponentTypesForStudentEligibilityPreReqType() throws DoesNotExistException { |
| 222 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.academicReadiness.studentEligibilityPrereq"); |
| 223 |
1
|
List<OrderedReqComponentType> types = statementType.getAllowedReqComponentTypes(); |
| 224 |
|
|
| 225 |
|
|
| 226 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.program.notadmitted.org.duration")); |
| 227 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.org.program.admitted")); |
| 228 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.program.notadmitted")); |
| 229 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.program.admitted")); |
| 230 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.completed")); |
| 231 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.completed.all")); |
| 232 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.completed.nof")); |
| 233 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.credits.completed.nof")); |
| 234 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.gpa.min")); |
| 235 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.grade.min")); |
| 236 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.grade.max")); |
| 237 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.permission.org.required")); |
| 238 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.permission.instructor.required")); |
| 239 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.test.score.min")); |
| 240 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.nof.grade.min")); |
| 241 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.program.admitted.org.duration")); |
| 242 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.org.credits.completed.min")); |
| 243 |
|
} |
| 244 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 245 |
1
|
@Test... |
| 246 |
|
public void testReqComponentTypesForRepeatableForCreditType() throws DoesNotExistException { |
| 247 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.credit.repeatable"); |
| 248 |
1
|
Assert.assertEquals(1, statementType.getAllowedReqComponentTypes().size()); |
| 249 |
|
} |
| 250 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 251 |
1
|
@Test... |
| 252 |
|
public void testValidReqComponentTypesForRepeatableForCreditType() throws DoesNotExistException { |
| 253 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.credit.repeatable"); |
| 254 |
1
|
List<OrderedReqComponentType> types = statementType.getAllowedReqComponentTypes(); |
| 255 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.credits.repeat.max")); |
| 256 |
|
} |
| 257 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 258 |
1
|
@Test... |
| 259 |
|
public void testReqComponentTypesForRecommendedPreparationType() throws DoesNotExistException { |
| 260 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.recommendedPreparation"); |
| 261 |
1
|
Assert.assertEquals(2, statementType.getAllowedReqComponentTypes().size()); |
| 262 |
|
} |
| 263 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 264 |
1
|
@Test... |
| 265 |
|
public void testValidReqComponentTypesForRecommendedPreparationType() throws DoesNotExistException { |
| 266 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.recommendedPreparation"); |
| 267 |
1
|
List<OrderedReqComponentType> types = statementType.getAllowedReqComponentTypes(); |
| 268 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.org.credits.completed.min")); |
| 269 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.completed")); |
| 270 |
|
} |
| 271 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 272 |
1
|
@Test... |
| 273 |
|
public void testReqComponentTypesForCoursesThatRestrictCreditType() throws DoesNotExistException { |
| 274 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.credit.restriction"); |
| 275 |
1
|
Assert.assertEquals(2, statementType.getAllowedReqComponentTypes().size()); |
| 276 |
|
} |
| 277 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 278 |
1
|
@Test... |
| 279 |
|
public void testValidReqComponentTypesForCoursesThatRestrictCreditType() throws DoesNotExistException { |
| 280 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.course.credit.restriction"); |
| 281 |
1
|
List<OrderedReqComponentType> types = statementType.getAllowedReqComponentTypes(); |
| 282 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.completed.none")); |
| 283 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.notcompleted")); |
| 284 |
|
} |
| 285 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 286 |
1
|
@Test... |
| 287 |
|
public void testReqComponentTypesForProgramSatisfactoryProgressType() throws DoesNotExistException { |
| 288 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.program.satisfactoryProgress"); |
| 289 |
1
|
Assert.assertEquals(7, statementType.getAllowedReqComponentTypes().size()); |
| 290 |
|
} |
| 291 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 1 |
Complexity Density: 0.11 |
1
PASS
|
|
| 292 |
1
|
@Test... |
| 293 |
|
public void testValidReqComponentTypesForProgramSatisfactoryProgressType() throws DoesNotExistException { |
| 294 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.program.satisfactoryProgress"); |
| 295 |
1
|
List<OrderedReqComponentType> types = statementType.getAllowedReqComponentTypes(); |
| 296 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.admitted.credits")); |
| 297 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.credits.max")); |
| 298 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.completion.duration")); |
| 299 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.candidate.status.duration")); |
| 300 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.nof.grade.min")); |
| 301 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.cumulative.gpa.min")); |
| 302 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.duration.gpa.min")); |
| 303 |
|
} |
| 304 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 305 |
1
|
@Test... |
| 306 |
|
public void testReqComponentTypesForProgramEntranceType() throws DoesNotExistException { |
| 307 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.program.entrance"); |
| 308 |
1
|
Assert.assertEquals(19, statementType.getAllowedReqComponentTypes().size()); |
| 309 |
|
} |
| 310 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (10) |
Complexity: 1 |
Complexity Density: 0.1 |
1
PASS
|
|
| 311 |
1
|
@Test... |
| 312 |
|
public void testValidReqComponentTypesForProgramEntranceType() throws DoesNotExistException { |
| 313 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.program.entrance"); |
| 314 |
1
|
List<OrderedReqComponentType> types = statementType.getAllowedReqComponentTypes(); |
| 315 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.programset.completed.nof")); |
| 316 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.programset.notcompleted.nof")); |
| 317 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.programset.completed.all")); |
| 318 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.programset.coursecompleted.nof")); |
| 319 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.gpa.min")); |
| 320 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.test.score.min")); |
| 321 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.admitted.credits")); |
| 322 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.minor.admitted.classstanding")); |
| 323 |
|
} |
| 324 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 325 |
1
|
@Test... |
| 326 |
|
public void testReqComponentTypesForProgramCompletionType() throws DoesNotExistException { |
| 327 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.program.completion"); |
| 328 |
1
|
Assert.assertEquals(18, statementType.getAllowedReqComponentTypes().size()); |
| 329 |
|
} |
| 330 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (12) |
Complexity: 1 |
Complexity Density: 0.08 |
1
PASS
|
|
| 331 |
1
|
@Test... |
| 332 |
|
public void testValidReqComponentTypesForProgramCompletionType() throws DoesNotExistException { |
| 333 |
1
|
StatementType statementType = this.dao.fetch(StatementType.class, "kuali.statement.type.program.completion"); |
| 334 |
1
|
List<OrderedReqComponentType> types = statementType.getAllowedReqComponentTypes(); |
| 335 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.programset.completed.nof")); |
| 336 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.programset.completed.all")); |
| 337 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.programset.coursecompleted.nof")); |
| 338 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.course.courseset.gpa.min")); |
| 339 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.credits.min")); |
| 340 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.residence.credits.final")); |
| 341 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.enrolled.credits.final")); |
| 342 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.completion.duration.afterentry")); |
| 343 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.minors.nof")); |
| 344 |
1
|
Assert.assertTrue(containsReqComponentType(types, "kuali.reqComponent.type.program.cumulative.gpa.min")); |
| 345 |
|
} |
| 346 |
|
|
|
|
|
| 83.3% |
Uncovered Elements: 1 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 347 |
64
|
private boolean containsReqComponentFieldType(List<ReqComponentFieldType> typeList, String id) {... |
| 348 |
64
|
for(ReqComponentFieldType type : typeList) { |
| 349 |
105
|
if(type.getId().equals(id)) { |
| 350 |
64
|
return true; |
| 351 |
|
} |
| 352 |
|
} |
| 353 |
0
|
return false; |
| 354 |
|
} |
| 355 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 356 |
1
|
@Test... |
| 357 |
|
public void testReqComponentFieldTypeCountForReqComponentType_course_courseset_completed_none() throws DoesNotExistException { |
| 358 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.completed.none"); |
| 359 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 360 |
|
} |
| 361 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 362 |
1
|
@Test... |
| 363 |
|
public void testReqComponentFieldTypeForReqComponentType_course_courseset_completed_none() throws DoesNotExistException { |
| 364 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.completed.none"); |
| 365 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 366 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.cluSet.id")); |
| 367 |
|
} |
| 368 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 369 |
1
|
@Test... |
| 370 |
|
public void testReqComponentFieldTypeCountForReqComponentType_reqCompFieldType_cluSet_id() throws DoesNotExistException { |
| 371 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.completed.all"); |
| 372 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 373 |
|
} |
| 374 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 375 |
1
|
@Test... |
| 376 |
|
public void testReqComponentFieldTypeForReqComponentType_reqCompFieldType_cluSet_id() throws DoesNotExistException { |
| 377 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.completed.all"); |
| 378 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 379 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.cluSet.id")); |
| 380 |
|
} |
| 381 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 382 |
1
|
@Test... |
| 383 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_course_courseset_completed_nof() throws DoesNotExistException { |
| 384 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.completed.nof"); |
| 385 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 386 |
|
} |
| 387 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 388 |
1
|
@Test... |
| 389 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_course_courseset_completed_nof() throws DoesNotExistException { |
| 390 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.completed.nof"); |
| 391 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 392 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 393 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.cluSet.id")); |
| 394 |
|
} |
| 395 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 396 |
1
|
@Test... |
| 397 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_course_courseset_enrolled_nof() throws DoesNotExistException { |
| 398 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.enrolled.nof"); |
| 399 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 400 |
|
} |
| 401 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 402 |
1
|
@Test... |
| 403 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_course_courseset_enrolled_nof() throws DoesNotExistException { |
| 404 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.enrolled.nof"); |
| 405 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 406 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 407 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.cluSet.id")); |
| 408 |
|
} |
| 409 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 410 |
1
|
@Test... |
| 411 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_course_courseset_credits_completed_nof() throws DoesNotExistException { |
| 412 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.credits.completed.nof"); |
| 413 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 414 |
|
} |
| 415 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 416 |
1
|
@Test... |
| 417 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_course_courseset_credits_completed_nof() throws DoesNotExistException { |
| 418 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.credits.completed.nof"); |
| 419 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 420 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 421 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.cluSet.id")); |
| 422 |
|
} |
| 423 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 424 |
1
|
@Test... |
| 425 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_course_courseset_credits_completed_none() throws DoesNotExistException { |
| 426 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.credits.completed.none"); |
| 427 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 428 |
|
} |
| 429 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 430 |
1
|
@Test... |
| 431 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_course_courseset_credits_completed_none() throws DoesNotExistException { |
| 432 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.credits.completed.none"); |
| 433 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 434 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 435 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.cluSet.id")); |
| 436 |
|
} |
| 437 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 438 |
1
|
@Test... |
| 439 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_course_courseset_credits_completed_max() throws DoesNotExistException { |
| 440 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.credits.completed.max"); |
| 441 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 442 |
|
} |
| 443 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 444 |
1
|
@Test... |
| 445 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_course_courseset_credits_completed_max() throws DoesNotExistException { |
| 446 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.credits.completed.max"); |
| 447 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 448 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 449 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.cluSet.id")); |
| 450 |
|
} |
| 451 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 452 |
1
|
@Test... |
| 453 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_course_courseset_gpa_min() throws DoesNotExistException { |
| 454 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.gpa.min"); |
| 455 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 456 |
|
} |
| 457 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 458 |
1
|
@Test... |
| 459 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_course_courseset_gpa_min() throws DoesNotExistException { |
| 460 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.gpa.min"); |
| 461 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 462 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.cluSet.id")); |
| 463 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.gpa")); |
| 464 |
|
} |
| 465 |
|
|
| 466 |
|
|
| 467 |
|
|
| 468 |
|
|
| 469 |
|
|
| 470 |
|
|
| 471 |
|
|
| 472 |
|
|
| 473 |
|
|
| 474 |
|
|
| 475 |
|
|
| 476 |
|
|
| 477 |
|
|
| 478 |
|
|
| 479 |
|
|
| 480 |
|
|
| 481 |
|
|
| 482 |
|
|
| 483 |
|
|
| 484 |
|
|
| 485 |
|
|
| 486 |
|
|
| 487 |
|
|
| 488 |
|
|
| 489 |
|
|
| 490 |
|
|
| 491 |
|
|
| 492 |
|
|
| 493 |
|
|
| 494 |
|
|
| 495 |
|
|
| 496 |
|
|
| 497 |
|
|
| 498 |
|
|
| 499 |
|
|
| 500 |
|
|
| 501 |
|
|
| 502 |
|
|
| 503 |
|
|
| 504 |
|
|
| 505 |
|
|
| 506 |
|
|
| 507 |
|
|
| 508 |
|
|
| 509 |
|
|
| 510 |
|
|
| 511 |
|
|
| 512 |
|
|
| 513 |
|
|
| 514 |
|
|
| 515 |
|
|
| 516 |
|
|
| 517 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 518 |
1
|
@Test... |
| 519 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_course_courseset_grade_min() throws DoesNotExistException { |
| 520 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.grade.min"); |
| 521 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 522 |
|
} |
| 523 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 524 |
1
|
@Test... |
| 525 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_course_courseset_grade_min() throws DoesNotExistException { |
| 526 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.grade.min"); |
| 527 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 528 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.cluSet.id")); |
| 529 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.grade.id")); |
| 530 |
|
} |
| 531 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 532 |
1
|
@Test... |
| 533 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_course_courseset_grade_max() throws DoesNotExistException { |
| 534 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.grade.max"); |
| 535 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 536 |
|
} |
| 537 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 538 |
1
|
@Test... |
| 539 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_course_courseset_grade_max() throws DoesNotExistException { |
| 540 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.grade.max"); |
| 541 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 542 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.cluSet.id")); |
| 543 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.grade.id")); |
| 544 |
|
} |
| 545 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 546 |
1
|
@Test... |
| 547 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_course_permission_org_required() throws DoesNotExistException { |
| 548 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.permission.org.required"); |
| 549 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 550 |
|
} |
| 551 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 552 |
1
|
@Test... |
| 553 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_course_permission_org_required() throws DoesNotExistException { |
| 554 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.permission.org.required"); |
| 555 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 556 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.org.id")); |
| 557 |
|
} |
| 558 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 559 |
1
|
@Test... |
| 560 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_course_permission_instructor_required() throws DoesNotExistException { |
| 561 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.permission.instructor.required"); |
| 562 |
1
|
Assert.assertEquals(0, reqComponentType.getReqCompFieldTypes().size()); |
| 563 |
|
} |
| 564 |
|
|
| 565 |
|
|
| 566 |
|
|
| 567 |
|
|
| 568 |
|
|
| 569 |
|
|
| 570 |
|
|
| 571 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 572 |
1
|
@Test... |
| 573 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_course_test_score_min() throws DoesNotExistException { |
| 574 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.test.score.min"); |
| 575 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 576 |
|
} |
| 577 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 578 |
1
|
@Test... |
| 579 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_course_test_score_min() throws DoesNotExistException { |
| 580 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.test.score.min"); |
| 581 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 582 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.test.cluSet.id")); |
| 583 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.test.score")); |
| 584 |
|
} |
| 585 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 586 |
1
|
@Test... |
| 587 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_course_test_score_max() throws DoesNotExistException { |
| 588 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.test.score.max"); |
| 589 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 590 |
|
} |
| 591 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 592 |
1
|
@Test... |
| 593 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_course_test_score_max() throws DoesNotExistException { |
| 594 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.test.score.max"); |
| 595 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 596 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.test.cluSet.id")); |
| 597 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.test.score")); |
| 598 |
|
} |
| 599 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 600 |
1
|
@Test... |
| 601 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_course_courseset_nof_grade_min() throws DoesNotExistException { |
| 602 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.nof.grade.min"); |
| 603 |
1
|
Assert.assertEquals(3, reqComponentType.getReqCompFieldTypes().size()); |
| 604 |
|
} |
| 605 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
1
PASS
|
|
| 606 |
1
|
@Test... |
| 607 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_course_courseset_nof_grade_min() throws DoesNotExistException { |
| 608 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.courseset.nof.grade.min"); |
| 609 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 610 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 611 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.cluSet.id")); |
| 612 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.grade.id")); |
| 613 |
|
} |
| 614 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 615 |
1
|
@Test... |
| 616 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_course_program_admitted_org_duration() throws DoesNotExistException { |
| 617 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.program.admitted.org.duration"); |
| 618 |
1
|
Assert.assertEquals(5, reqComponentType.getReqCompFieldTypes().size()); |
| 619 |
|
} |
| 620 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (7) |
Complexity: 1 |
Complexity Density: 0.14 |
1
PASS
|
|
| 621 |
1
|
@Test... |
| 622 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqComponent_type_course_program_admitted_org_duration() throws DoesNotExistException { |
| 623 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.program.admitted.org.duration"); |
| 624 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 625 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.program.cluSet.id")); |
| 626 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 627 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.org.id")); |
| 628 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.duration")); |
| 629 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.durationType.id")); |
| 630 |
|
} |
| 631 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 632 |
1
|
@Test... |
| 633 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_org_duration() throws DoesNotExistException { |
| 634 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.program.notadmitted.org.duration"); |
| 635 |
1
|
Assert.assertEquals(5, reqComponentType.getReqCompFieldTypes().size()); |
| 636 |
|
} |
| 637 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (7) |
Complexity: 1 |
Complexity Density: 0.14 |
1
PASS
|
|
| 638 |
1
|
@Test... |
| 639 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_org_duration() throws DoesNotExistException { |
| 640 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.program.notadmitted.org.duration"); |
| 641 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 642 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.program.cluSet.id")); |
| 643 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 644 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.org.id")); |
| 645 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.duration")); |
| 646 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.durationType.id")); |
| 647 |
|
} |
| 648 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 649 |
1
|
@Test... |
| 650 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_course_org_program_admitted() throws DoesNotExistException { |
| 651 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.org.program.admitted"); |
| 652 |
1
|
Assert.assertEquals(0, reqComponentType.getReqCompFieldTypes().size()); |
| 653 |
|
} |
| 654 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 655 |
1
|
@Test... |
| 656 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_course_program_notadmitted() throws DoesNotExistException { |
| 657 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.program.notadmitted"); |
| 658 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 659 |
|
} |
| 660 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 661 |
1
|
@Test... |
| 662 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqComponent_type_course_program_notadmitted() throws DoesNotExistException { |
| 663 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.program.notadmitted"); |
| 664 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 665 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.program.cluSet.id")); |
| 666 |
|
} |
| 667 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 668 |
1
|
@Test... |
| 669 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_course_program_admitted() throws DoesNotExistException { |
| 670 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.program.admitted"); |
| 671 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 672 |
|
} |
| 673 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 674 |
1
|
@Test... |
| 675 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqComponent_type_course_program_admitted() throws DoesNotExistException { |
| 676 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.program.admitted"); |
| 677 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 678 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.program.cluSet.id")); |
| 679 |
|
} |
| 680 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 681 |
1
|
@Test... |
| 682 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_course_credits_repeat_max() throws DoesNotExistException { |
| 683 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.credits.repeat.max"); |
| 684 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 685 |
|
} |
| 686 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 687 |
1
|
@Test... |
| 688 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqComponent_type_course_credits_repeat_max() throws DoesNotExistException { |
| 689 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.credits.repeat.max"); |
| 690 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 691 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 692 |
|
} |
| 693 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 694 |
1
|
@Test... |
| 695 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_course_org_credits_completed_min() throws DoesNotExistException { |
| 696 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.org.credits.completed.min"); |
| 697 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 698 |
|
} |
| 699 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 700 |
1
|
@Test... |
| 701 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqComponent_type_course_org_credits_completed_min() throws DoesNotExistException { |
| 702 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.org.credits.completed.min"); |
| 703 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 704 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 705 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.org.id")); |
| 706 |
|
} |
| 707 |
|
|
| 708 |
|
|
| 709 |
|
|
| 710 |
|
|
| 711 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 712 |
1
|
@Test... |
| 713 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_program_programset_completed_nof() throws DoesNotExistException { |
| 714 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.programset.completed.nof"); |
| 715 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 716 |
|
} |
| 717 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 718 |
1
|
@Test... |
| 719 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_program_programset_completed_nof() throws DoesNotExistException { |
| 720 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.programset.completed.nof"); |
| 721 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 722 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 723 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.program.cluSet.id")); |
| 724 |
|
} |
| 725 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 726 |
1
|
@Test... |
| 727 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_program_programset_notcompleted_nof() throws DoesNotExistException { |
| 728 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.programset.notcompleted.nof"); |
| 729 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 730 |
|
} |
| 731 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 732 |
1
|
@Test... |
| 733 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_program_programset_notcompleted_nof() throws DoesNotExistException { |
| 734 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.programset.notcompleted.nof"); |
| 735 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 736 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.program.cluSet.id")); |
| 737 |
|
} |
| 738 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 739 |
1
|
@Test... |
| 740 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_program_programset_completed_all() throws DoesNotExistException { |
| 741 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.programset.completed.all"); |
| 742 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 743 |
|
} |
| 744 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 745 |
1
|
@Test... |
| 746 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_program_programset_completed_all() throws DoesNotExistException { |
| 747 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.programset.completed.all"); |
| 748 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 749 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.program.cluSet.id")); |
| 750 |
|
} |
| 751 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 752 |
1
|
@Test... |
| 753 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_program_programset_coursecompleted_nof() throws DoesNotExistException { |
| 754 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.programset.coursecompleted.nof"); |
| 755 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 756 |
|
} |
| 757 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 758 |
1
|
@Test... |
| 759 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_program_programset_coursecompleted_nof() throws DoesNotExistException { |
| 760 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.programset.coursecompleted.nof"); |
| 761 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 762 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 763 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.program.cluSet.id")); |
| 764 |
|
} |
| 765 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 766 |
1
|
@Test... |
| 767 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_program_admitted_credits() throws DoesNotExistException { |
| 768 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.admitted.credits"); |
| 769 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 770 |
|
} |
| 771 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 772 |
1
|
@Test... |
| 773 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_program_admitted_credits() throws DoesNotExistException { |
| 774 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.admitted.credits"); |
| 775 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 776 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 777 |
|
} |
| 778 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 779 |
1
|
@Test... |
| 780 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_program_credits_min() throws DoesNotExistException { |
| 781 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.credits.min"); |
| 782 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 783 |
|
} |
| 784 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 785 |
1
|
@Test... |
| 786 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_program_credits_min() throws DoesNotExistException { |
| 787 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.credits.min"); |
| 788 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 789 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 790 |
|
} |
| 791 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 792 |
1
|
@Test... |
| 793 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_program_credits_max() throws DoesNotExistException { |
| 794 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.credits.max"); |
| 795 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 796 |
|
} |
| 797 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 798 |
1
|
@Test... |
| 799 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_program_credits_max() throws DoesNotExistException { |
| 800 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.credits.max"); |
| 801 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 802 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 803 |
|
} |
| 804 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 805 |
1
|
@Test... |
| 806 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_program_completion_duration() throws DoesNotExistException { |
| 807 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.completion.duration"); |
| 808 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 809 |
|
} |
| 810 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 811 |
1
|
@Test... |
| 812 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_program_completion_duration() throws DoesNotExistException { |
| 813 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.completion.duration"); |
| 814 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 815 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.duration")); |
| 816 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.durationType.id")); |
| 817 |
|
} |
| 818 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 819 |
1
|
@Test... |
| 820 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_program_candidate_status_duration() throws DoesNotExistException { |
| 821 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.candidate.status.duration"); |
| 822 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 823 |
|
} |
| 824 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 825 |
1
|
@Test... |
| 826 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_program_candidate_status_duration() throws DoesNotExistException { |
| 827 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.candidate.status.duration"); |
| 828 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 829 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.duration")); |
| 830 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.durationType.id")); |
| 831 |
|
} |
| 832 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 833 |
1
|
@Test... |
| 834 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqCompType_program_completion_duration_afterentry() throws DoesNotExistException { |
| 835 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.completion.duration.afterentry"); |
| 836 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 837 |
|
} |
| 838 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 839 |
1
|
@Test... |
| 840 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqCompType_program_completion_duration_afterentry() throws DoesNotExistException { |
| 841 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.completion.duration.afterentry"); |
| 842 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 843 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.duration")); |
| 844 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.durationType.id")); |
| 845 |
|
} |
| 846 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 847 |
1
|
@Test... |
| 848 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_program_residence_credits_final() throws DoesNotExistException { |
| 849 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.residence.credits.final"); |
| 850 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 851 |
|
} |
| 852 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 853 |
1
|
@Test... |
| 854 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqComponent_type_program_residence_credits_final() throws DoesNotExistException { |
| 855 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.residence.credits.final"); |
| 856 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 857 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.program.clu.id")); |
| 858 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 859 |
|
} |
| 860 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 861 |
1
|
@Test... |
| 862 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_program_enrolled_credits_final() throws DoesNotExistException { |
| 863 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.enrolled.credits.final"); |
| 864 |
1
|
Assert.assertEquals(2, reqComponentType.getReqCompFieldTypes().size()); |
| 865 |
|
} |
| 866 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1
PASS
|
|
| 867 |
1
|
@Test... |
| 868 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqComponent_type_program_enrolled_credits_final() throws DoesNotExistException { |
| 869 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.enrolled.credits.final"); |
| 870 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 871 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.program.clu.id")); |
| 872 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 873 |
|
} |
| 874 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 875 |
1
|
@Test... |
| 876 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_program_minors_nof() throws DoesNotExistException { |
| 877 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.minors.nof"); |
| 878 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 879 |
|
} |
| 880 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 881 |
1
|
@Test... |
| 882 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqComponent_type_program_minors_nof() throws DoesNotExistException { |
| 883 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.minors.nof"); |
| 884 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 885 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.value.positive.integer")); |
| 886 |
|
} |
| 887 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 888 |
1
|
@Test... |
| 889 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_program_minor_admitted_classstanding() throws DoesNotExistException { |
| 890 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.program.minor.admitted.classstanding"); |
| 891 |
1
|
Assert.assertEquals(0, reqComponentType.getReqCompFieldTypes().size()); |
| 892 |
|
} |
| 893 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 894 |
1
|
@Test... |
| 895 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_course_completed() throws DoesNotExistException { |
| 896 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.completed"); |
| 897 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 898 |
|
} |
| 899 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 900 |
1
|
@Test... |
| 901 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqComponent_type_course_completed() throws DoesNotExistException { |
| 902 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.completed"); |
| 903 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 904 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.clu.id")); |
| 905 |
|
} |
| 906 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 907 |
1
|
@Test... |
| 908 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_course_enrolled() throws DoesNotExistException { |
| 909 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.enrolled"); |
| 910 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 911 |
|
} |
| 912 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 913 |
1
|
@Test... |
| 914 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqComponent_type_course_enrolled() throws DoesNotExistException { |
| 915 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.enrolled"); |
| 916 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 917 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.clu.id")); |
| 918 |
|
} |
| 919 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
| 920 |
1
|
@Test... |
| 921 |
|
public void testReqComponentFieldTypeCountForReqComponentType_kuali_reqComponent_type_course_notcompleted() throws DoesNotExistException { |
| 922 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.notcompleted"); |
| 923 |
1
|
Assert.assertEquals(1, reqComponentType.getReqCompFieldTypes().size()); |
| 924 |
|
} |
| 925 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
| 926 |
1
|
@Test... |
| 927 |
|
public void testReqComponentFieldTypeForReqComponentType_kuali_reqComponent_type_course_notcompleted() throws DoesNotExistException { |
| 928 |
1
|
ReqComponentType reqComponentType = this.dao.fetch(ReqComponentType.class, "kuali.reqComponent.type.course.notcompleted"); |
| 929 |
1
|
List<ReqComponentFieldType> types = reqComponentType.getReqCompFieldTypes(); |
| 930 |
1
|
Assert.assertTrue(containsReqComponentFieldType(types, "kuali.reqComponent.field.type.course.clu.id")); |
| 931 |
|
} |
| 932 |
|
} |