Skip to content
Snippets Groups Projects

Add tests for Lab model

All threads resolved!
Merged
Thijs Nullerequested to merge
Lab-Test into development
All threads resolved!
2 files
+ 3
6
Compare changes
  • Side-by-side
  • Inline

Files

@@ -96,9 +96,6 @@ public class CourseController {
@Autowired
private AssignmentRepository assignmentRepository;
@Autowired
private FirstYearMentorGroupRepository firstYearMentorGroupRepository;
@Autowired
private ParticipantValidator participantValidator;
@@ -431,8 +428,8 @@ public class CourseController {
model.addAttribute("course", course);
model.addAttribute("labs", labs);
model.addAttribute("occupation", numberOfAvailableSlotsStrings(course));
if (course.getHasGroups() && firstYearMentorGroupRepository.findAllByActiveIsTrue().size() == 0) {
model.addAttribute("alert", "No mentor groups have yet to be imported.");
if (course.getHasGroups() && course.getGroups().size() == 0) {
model.addAttribute("alert", "No groups have yet been imported.");
}
return "course/view/labs";
Loading