diff --git a/src/test/java/org/example/AdministrationTest.java b/src/test/java/org/example/AdministrationTest.java index 20e879b..b5aa94f 100644 --- a/src/test/java/org/example/AdministrationTest.java +++ b/src/test/java/org/example/AdministrationTest.java @@ -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")); + } + } \ No newline at end of file