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