|
|
@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
} |