Search in sources :

Example 11 with CourseInCharge

use of amu.zhcet.data.course.incharge.CourseInCharge in project zhcet-web by zhcet-amu.

the class DiffUtilsTest method getCourseInCharge.

private static CourseInCharge getCourseInCharge(Long id, FloatedCourse floatedCourse, FacultyMember facultyMember, String section) {
    CourseInCharge courseInCharge = new CourseInCharge();
    courseInCharge.setId(id);
    courseInCharge.setFloatedCourse(floatedCourse);
    courseInCharge.setFacultyMember(facultyMember);
    courseInCharge.setSection(section);
    return courseInCharge;
}
Also used : CourseInCharge(amu.zhcet.data.course.incharge.CourseInCharge)

Example 12 with CourseInCharge

use of amu.zhcet.data.course.incharge.CourseInCharge in project zhcet-web by zhcet-amu.

the class DiffUtilsTest method courseInChargeShouldBeSameWithNullId.

@Test
public void courseInChargeShouldBeSameWithNullId() {
    CourseInCharge courseInCharge1 = getCourseInCharge(23L, floatedCourse, dean, null);
    CourseInCharge courseInCharge2 = getCourseInCharge(null, floatedCourse, dean, null);
    assertTrue(courseInCharge1.equals(courseInCharge2));
    assertTrue(courseInCharge2.equals(courseInCharge1));
}
Also used : CourseInCharge(amu.zhcet.data.course.incharge.CourseInCharge) Test(org.junit.Test)

Example 13 with CourseInCharge

use of amu.zhcet.data.course.incharge.CourseInCharge in project zhcet-web by zhcet-amu.

the class DiffUtilsTest method courseInChargeShouldBeDifferentWithDifferentFaculty.

@Test
public void courseInChargeShouldBeDifferentWithDifferentFaculty() {
    CourseInCharge courseInCharge1 = getCourseInCharge(23L, floatedCourse, saif, "A4PE");
    CourseInCharge courseInCharge2 = getCourseInCharge(23L, floatedCourse, dean, "A4PE");
    assertFalse(courseInCharge1.equals(courseInCharge2));
    assertFalse(courseInCharge2.equals(courseInCharge1));
}
Also used : CourseInCharge(amu.zhcet.data.course.incharge.CourseInCharge) Test(org.junit.Test)

Aggregations

CourseInCharge (amu.zhcet.data.course.incharge.CourseInCharge)13 CourseInChargeNotFoundException (amu.zhcet.data.course.incharge.CourseInChargeNotFoundException)5 Test (org.junit.Test)4 IOException (java.io.IOException)3 GetMapping (org.springframework.web.bind.annotation.GetMapping)3 CourseRegistration (amu.zhcet.data.course.registration.CourseRegistration)2 List (java.util.List)2 Slf4j (lombok.extern.slf4j.Slf4j)2 Autowired (org.springframework.beans.factory.annotation.Autowired)2 Attendance (amu.zhcet.data.attendance.Attendance)1 AttendanceService (amu.zhcet.data.attendance.AttendanceService)1 FloatedCourse (amu.zhcet.data.course.floated.FloatedCourse)1 CourseInChargeService (amu.zhcet.data.course.incharge.CourseInChargeService)1 FacultyMember (amu.zhcet.data.user.faculty.FacultyMember)1 FacultyMemberNotFoundException (amu.zhcet.data.user.faculty.FacultyMemberNotFoundException)1 FacultyService (amu.zhcet.data.user.faculty.FacultyService)1 Confirmation (amu.zhcet.storage.csv.Confirmation)1 UploadResult (amu.zhcet.storage.csv.UploadResult)1 ArrayList (java.util.ArrayList)1 Comparator (java.util.Comparator)1