Question: Consider the following code: class TimeDuration { public Time Duration(int totalSeconds) (...) public int getHours () {...} public int getMinutes ()(...) public int get Seconds
Consider the following code: class TimeDuration { public Time Duration(int totalSeconds) (...) public int getHours () {...} public int getMinutes ()(...) public int get Seconds () {...) // returns new duration object representing // difference between this duration and other public Time Duration subtract (TimeDuration other) {...} } Outline a set of black box unit tests for each method in the class above (with the exception of the constructor). You may use pseudocode descriptions, but you must be specific about the test values used
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
