Question: b. Code Testing You are provided with a test driver implemented by TestPersonList.java (Do not make any changes to this file!) so there is no

b. Code Testing You are provided with a test driver implemented by "TestPersonList.java" (Do not make any changes to this file!) so there is no need to write your own. Once you have completed the methods, you can run the test. You should create a plain text file named "output.txt", copy and paste the output (if your code crashes or does not compile, copy and paste the error messages) to this file and save it.

Sample output: Test 1: size() ==> [Passed] Expected: 0 Yours: 0 Test 2: add(1003, "Xiwei Wang") ==> [Passed] Expected: true Yours: true Test 3: isEmpty() ==> [Passed] Expected: false Yours: false Test 4: add(1005, "Neil Moore") ==> [Passed] Expected: true Yours: true Test 5: add(1001, "Peter Kimmel") ==> [Passed] Expected: true Yours: true Test 6: size() ==> [Passed] Expected: 3 Yours: 3 Test 7: toString() ==> [Passed] Expected: [1001 | Peter Kimmel] [1003 | Xiwei Wang] [1005 | Neil Moore] Yours: [1001 | Peter Kimmel] [1003 | Xiwei Wang] [1005 | Neil Moore] ... Test 28: toString() ==> [Passed] Expected: [1003 | Damon Caskey] [1004 | Jeremy Wells] [1006 | Erich Smith] Yours: [1003 | Damon Caskey] [1004 | Jeremy Wells] [1006 | Erich Smith] Test 29: contains(1004) ==> [Passed] Expected: true Yours: true Test 30: contains(1005) ==> [Passed] Expected: false Yours: false Test 31: remove(1002) ==> [Passed] Expected: false Yours: false Test 32: remove(1003) ==> [Passed] Expected: true Yours: true Test 33: size() ==> [Passed] Expected: 2 Yours: 2 Total test cases: 33 Correct: 33 Wrong: 0

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!