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;
}
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));
}
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));
}
Aggregations