Browse Source

Test: deleteProfessor Test Added

remotes/origin/fdai7780
fdai7600 11 months ago
parent
commit
d62aa243f8
  1. 10
      src/test/java/org/example/AdministrationTest.java

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

@ -72,4 +72,14 @@ class AdministrationTest {
assertEquals(student, student2);
}
@Test
void deleteProfessor() {
Administration administration = new Administration();
Professor professor = new Professor("P1002", "Diana", "Professor");
administration.addProfessor(professor);
assertTrue(administration.deleteProfessor("P1002"));
assertNull(administration.findProfessorById("P1002"));
}
}
Loading…
Cancel
Save