Question: Download all of the . java files found in the Assignments Assignment 2 page on BrightSpace. 2 . Read through the Player.java and Team.java files
Download all of the java files found in the Assignments Assignment page on BrightSpace.
Read through the Player.java and Team.java files provided for you. The fields and methods found in
the two classes are overviewed in the UML diagram shown below.
Compile and run ATester.java. Note the new way we perform tests, using the displayResults
method. For more information on how this method is used, watch the displayResults video.
Open the ATester.java file. Read through the tests for testPlayerConstructor to see what the expected
behaviour is for the Player constructor. Implement the Player constructor, save, and then recompile and
run ATester.java. If any tests fail, fix the errors until all of the tests pass for that method. Add any
tests that you feel are necessary.
After finishing your implementation of the Player constructor, uncomment the second test method in
ATester.java testTotalFans Follow the same process that you did in the previous step until you are
certain the totalFans method has been implemented correctly in the Team class.
Continue moving down one test method at a time until all of the required methods have been implemented.
Remember to write additional tests until you are sure that your implementation will work correctly under
all different possible input scenarios. It may be wort
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
