|
@ -72,4 +72,14 @@ class AdministrationTest { |
|
|
assertEquals(student, student2); |
|
|
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")); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |