|
@ -531,6 +531,25 @@ class AdministrationTest { |
|
|
assertEquals(0, admin.getCourses().size()); |
|
|
assertEquals(0, admin.getCourses().size()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void dropStudentFromCourseWithInput(){ |
|
|
|
|
|
|
|
|
|
|
|
Student student = sampleStudent; |
|
|
|
|
|
Course course = sampleCourse; |
|
|
|
|
|
admin.addStudents(student); |
|
|
|
|
|
admin.addCourse(course); |
|
|
|
|
|
|
|
|
|
|
|
admin.enrollStudentInCourse("S123456", "M101"); |
|
|
|
|
|
|
|
|
|
|
|
System.out.println("Enter Student ID:"); |
|
|
|
|
|
String studentID = "S123456"; |
|
|
|
|
|
System.out.println("Enter Course ID:"); |
|
|
|
|
|
String courseID = "M101"; |
|
|
|
|
|
admin.dropStudentFromCourse(studentID, courseID); |
|
|
|
|
|
|
|
|
|
|
|
assertEquals(0, student.getCourseGrades().size()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|