diff --git a/src/test/java/org/example/AdministrationTest.java b/src/test/java/org/example/AdministrationTest.java index 047adaf..46daa26 100644 --- a/src/test/java/org/example/AdministrationTest.java +++ b/src/test/java/org/example/AdministrationTest.java @@ -17,7 +17,7 @@ class AdministrationTest { // Test the findProfessorById Method @Test - void findProfessorById() { + void testFindProfessorById() { Professor prof1 = sampleProf; admin.addProfessor(prof1); @@ -28,7 +28,7 @@ class AdministrationTest { } @Test - void deleteProfessor() { + void testDeleteProfessor() { Administration administration = new Administration(); Professor professor = sampleProf2; @@ -54,7 +54,7 @@ class AdministrationTest { } @Test - void isNumber() { + void testIsNumber() { String full01 = "S1002"; //Supposed student id // String str1 = full01.substring(1); //String without the Letter @@ -75,7 +75,7 @@ class AdministrationTest { } @Test - void rightPrefix() { + void testRightPrefix() { String full01 = "S1002"; //Supposed Student id String full02 = "s100Z"; //Supposed Student id @@ -96,7 +96,7 @@ class AdministrationTest { * Verifies the functionality of deleting an admin from the system. */ @Test - void deleteAdmin() { + void testDeleteAdmin() { // Add admins to the administration admin.addAdmin(sampleAdmin); admin.addAdmin(sampleAdmin2); @@ -122,7 +122,7 @@ class AdministrationTest { @org.junit.jupiter.api.Test - void findStudentById(){ + void testFindStudentById(){ Student student = new Student("Mark", "S1001", "Student"); admin.addStudents(student); @@ -131,7 +131,7 @@ class AdministrationTest { assertEquals(student, student2); } @Test - void addAdminTest() { + void testAddAdmin() { Administration administration = new Administration(); Admin admin = new Admin("Jane Doe", "A2001", "Admin"); @@ -144,7 +144,7 @@ class AdministrationTest { } @Test - void findAdminByIdTest() { + void testFindAdminById() { Administration administration = new Administration(); Admin admin = new Admin("John Doe", "A2002", "Admin"); administration.addAdmin(admin); @@ -171,7 +171,7 @@ class AdministrationTest { } @Test - void deleteStudentTest() { + void testDeleteStudent() { Administration administration = new Administration(); Student student = new Student("Bob", "S1002", "Student"); @@ -191,7 +191,7 @@ class AdministrationTest { * Verifies the functionality of adding a student to the system. */ @Test - void addStudents() { + void testAddStudents() { // Creating a sample student Student student = sampleStudent; @@ -219,7 +219,7 @@ class AdministrationTest { * Verifies the functionality of deleting a student from the system. */ @Test - void deleteStudents() { + void testDeleteStudents() { Student student1 = sampleStudent; Student student2 = sampleStudent2; @@ -251,7 +251,7 @@ class AdministrationTest { * Adds a course to the Administration instance and checks if it can be found by its ID. */ @Test - void addCourse() { + void testAddCourse() { Course course = sampleCourse; admin.addCourse(course); assertEquals(course, admin.findCourseByID("M101"));