Browse Source

Merge branch 'fdai7887'

remotes/origin/fdai7887
fdai7887 11 months ago
parent
commit
595adc0298
  1. 19
      src/test/java/org/example/AdministrationTest.java

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

@ -531,6 +531,25 @@ class AdministrationTest {
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());
}
}
Loading…
Cancel
Save