Question: Your line manager has instructed you to write unit tests to determine the code coverage in the student management application. You are required to create

Your line manager has instructed you to write unit tests to determine the code coverage in the student management application. You are required to create a test package within the application you created in Section A, which will contain the required unit tests.
You are required to write the following unit tests:
\table[[Test Name,Test Purpose],[TestSaveStudent(),\table[[To supply the student ID, name, age, email,],[and course to the save student method. The],[test will determine whether the correct],[student will be saved to memory.]]],[TestSearchStudent(0),\table[[To supply the student ID to the search],[student method. The test will determine],[that the correct student details have been],[returned.]]],[TestiearchStudent_StudentNotFound(1),\table[[To supply an incorrect student ID to the],[search student method. The test will],[determine that no student was found.]]],[TestDeleteStudenti),\table[[To supply the student ID to the delete],[student method. The test will determine],[that the student has been successfully],[deleted]]],[TestDeletestudent_StudentMotFound(),\table[[To supply an incorrect student ID to the],[delete student method. The test will],[determine that no student could be found to],[delete:]]]]
\table[[TeststudentAge_StudentAgeValid(),\table[[To supply a valid student age to the student],[age method. The test will determine that the],[student's age is valid.]]],[TestStudentAge_StudentAgelnvalid(0,\table[[To supply an invalid student age to the],[student age method. The test will determine],[that the student's age is less than 16.]]],[TesistudentAge_Studentagelnvalid Character(),\table[[To supply an invalid character to the student],[age method. The test will determine that the],[student age supplied is not a number.]]]]
Your line manager has instructed you to write

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!