|
|
@ -94,4 +94,15 @@ class AdministrationTest { |
|
|
|
assertNull(administration.findCourseByID("M101")); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testFindCourseByID() { |
|
|
|
Administration administration = new Administration(); |
|
|
|
// Adding a course |
|
|
|
Course course = new Course("Math", "M101", 4); |
|
|
|
administration.addCourse(course); |
|
|
|
|
|
|
|
// Finding the added course |
|
|
|
assertEquals(course, administration.findCourseByID("M101")); |
|
|
|
} |
|
|
|
|
|
|
|
} |