1
answer
0
watching
107
views

Have a look at the Java 14 ArrayList documentation:
https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/util/ArrayList.html

Imagine you developed this data structure and wanted to test it with the following standards:

- every method that returns a boolean should have at least 3 unit tests, one for a 'true' case, one for a 'false' case and one trivial 'corner case'
- every constructor should have at least 2 unit tests
- every other method (whether they return void or an Object or anything else) should have at least 4 unit tests

Then (at least) how many unit tests should you use to sufficiently test Java's ArrayList? Ensure that "All Methods" is selected when you are looking at the list of ArrayList methods. 

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in

Weekly leaderboard

Start filling in the gaps now
Log in