Question: Create a new Junit Test Class, GradebookTester.java, by 1 . Select the setUp and tearDown method. 2 . Select all of the methods of Gradebook,

Create a new Junit Test Class, GradebookTester.java, by
1. Select the setUp and tearDown method.
2. Select all of the methods of Gradebook, except for the constructor to create tests for.
3. In the setUp method of GradebookTester, create at least two objects of Gradebook of size 5. Call the addScore method for each of the Gradebook classes at least twice (but no more than 5 times).
4. In the teardown method of GradebookTester, set the two objects of Gradebook to null;
5. Create test for the methods of Gradebook:
a. addScore
i. Use the toString method to compare the contents of what is in the scores array vs. what is expected to be in the scores array
assertTrue(...)

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 Databases Questions!