Question: . Download all of the . java files found in the Assignments > Assignment 2 page on BrightSpace. 2 . Read through the AuctionItem.java and

. Download all of the .java files found in the Assignments > Assignment 2 page on BrightSpace.
2. Read through the AuctionItem.java and Fundraiser.java files provided for you. The fields and
methods found in the two classes are overviewed in the UML diagram shown below.
3. Compile and run A2Tester.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.
4. Open the A2Tester.java file. Read through the tests for testConstructor to see what the expected
behaviour is for the Fundraiser constructor. Implement the Fundraiser constructor, save, and then recompile
and run A2Tester.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.
5. After finishing your implementation of the Fundraiser constructor, uncomment the second test method in
A2Tester.java (testMoneyRaised). Follow the same process that you did in the previous step until you
are certain the moneyRaised method has been implemented correctly in the Fundraiser class.
6. 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 worthwhile reviewing the video on test coverage when
considering which additional tests 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 Databases Questions!