diff --git a/src/test/java/org/example/AdministrationTest.java b/src/test/java/org/example/AdministrationTest.java new file mode 100644 index 0000000..3b78a4a --- /dev/null +++ b/src/test/java/org/example/AdministrationTest.java @@ -0,0 +1,22 @@ +package org.example; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class AdministrationTest { + + @Test + void findProfessorById() { + Administration administration = new Administration(); + Professor prof1 = new Professor("P1001", "Aaron", "Professor"); + + administration.addProfessor(prof1); + + Professor foundProf1 = administration.findProfessorById("P1001"); + assertEquals(prof1, foundProf1); + + + + } +} \ No newline at end of file