create the test class gradebooktester. 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( . . .) ii. compare the scoresize to the expected number of scores entered. assertequals(. . .) b. sum i. compare what is returned by sum() to the expected sum of the scores entered. c. minimum i. compare what is returned by minimum() to the expected minimum of the scores entered.



Answer :

Other Questions