Browse Source

Added test for findStudentById Method for Administration class

remotes/origin/fdai7780
fdai7887 11 months ago
parent
commit
09432450b7
  1. 12
      src/test/java/org/example/AdministrationTest.java

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

@ -20,4 +20,16 @@ class AdministrationTest {
} }
@org.junit.jupiter.api.Test
void findStudentById(){
Administration administration = new Administration();
Student student = new Student("Mark", "S1001", "Student");
administration.addStudents(student);
Student student2 = administration.findStudentById("S1001");
assertEquals(student, student2);
}
} }
Loading…
Cancel
Save