Browse Source

test: addCourse in Administration class

remotes/origin/fdai7780
fdai7921 11 months ago
parent
commit
eb068791f3
  1. 7
      src/test/java/org/example/AdministrationTest.java

7
src/test/java/org/example/AdministrationTest.java

@ -72,4 +72,11 @@ class AdministrationTest {
assertEquals(student, student2);
}
@Test
void addCourse() {
Administration admin = new Administration();
Course course = new Course("Math", "M101", 4);
admin.addCourse(course);
assertEquals(course, admin.findCourseByID("M101"));
}
}
Loading…
Cancel
Save