An open-source testing framework for Java,
JUnit,
was introduced. Write a JUnit test class for
Clock24.java with a test method for
each
feature to be tested. Your JUnit tests should include
the test cases currently in the test method of Clock24; these test cases should
pass without any modification to the class you are testing (Clock24).
Hand in the source code of the JUnit test class, as well as a screen snapshot showing that these JUnit tests passed.
You may include additional tests, which may or may not pass.
Follow the documentation and style guidelines as discussed in class/textbook (there is a review in chapter 1 of the third and second editions and the appendix of the Updated edition).
The assignment should be done individually.
[Back to the Assignments Index]