|
Your spec at the beginning says you should do that by creating a separate test class called TestClock - that's given in my earlier post. The spec also says that your original Clock class should have a constructor that does the following:
"The constructor should create object with instance variables initialized to the time and date 0:00:00 January 1, 1 A.D."
You currently only have the default constructor so you will need to override that and set your instance variable to the correct values for the date given.
Do that first and then work down the instructions in your spec - it is a pretty clear spec - shout if you get code problems.
Just a query. why did you call your class ClockRx?
__________________
-- Hope that helps
|