Require: Java 8 (or higher), JUnit (you are recommended to use the latest version, JUnit 5).
Additional resources: You may find class discussions on RIPR model, test automation, and characteristics of good tests helpful when designing and automating your tests.
You may work alone or with another student in this course.
Consider CustomizedHangman.java.
Develop at least 5 JUnit tests to evaluate the CustomizedHangman class.
Each test must verify a different fact.
You may create a new JUnit test file or
add your JUnit tests to CustomizedHangmanTest.java.
Consider the lostStick() method of the CustomizedHangman class.
It has if (sticksRemaining < 0), which is a faulty version,
instead of if (sticksRemaining == 0).
Can the tests you created previously detect this fault? If not, design and automate test(s)
that can detect this fault.
Note: to test, please comment the line of code noted as "correct version"
and uncomment the line of code noted as "faulty version."
Reminder: You are writing tests to check against CustomizedHangman.java. Thus, do not modify CustomizedHangman.java; it is your program under test.
CC-BY-NC-SA 4.0 license.