Duration Formatting The primary goal of this assignment is to get more practice with Java, while working in the context of a simple object-oriented design. A secondary goal is to think carefully about tests and test coverage. This assignment is an extension of the code written in Lecture 4. Your task is to implement and test a method This ZIP archive contains the files you need to start. Compared to the version in the lecture notes, I’ve made two changes: In interface In the class To complete this assignment, you must: For this assignment, you will be graded on Please submit your homework to the CS 3500 submission server. Then be sure to complete your self evaluation by 11:59 PM on Thursday, Sept. 25.2 Description
String format(String template)
for formatting durations as strings.
Duration
(source), I added the signature of the format
method, along with a JavaDoc comment detailing its specification. (The signature is currently commented out so that the code in the archive compiles as-is. You will need to uncomment it.)AbstractDurationTest
(source), I added (and commented out) two test methods for format
, called testFormatExample1
and testFormatExample2
. These serve as examples, but you will need to add several more.
format
method signature in the interface.3 List of Deliverables
4 Grading Standards
5 Submission