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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started