DateBench (TM) After the Year 2000
Original Intent
DateBench was originally intended to provide comparison values for testing date routines in other software. The focus was on code being modified for the millennium change. It was also a demonstration of the WysDoM methodology. DateBench provides a specification of a number of date manipulation routines and a set of Java classes that implement these specifications. The Waysys web site contained a set of Java applets to exercise the Java code. Is there a use for DateBench after the Year 2000?
New Uses for DateBench
We have found several uses for DateBench since 2000:
- The WayDate Java class is easier to use and avoid certain problems compared to the Java Date class.
- The DateBench specification proves to be a useful component of the Specification Library.
- The DateBench applets provide a convenient means of performing various date calculations.
Upgrades
As a result, we have upgraded DateBench in several ways:
- The Java code has been updated to reflect changes in Java since the code was originally written in 1997. These changes include implementing the Serializable, Comparable, and Cloneable interfaces.
- The WayDate class was refactor to use the Bridge pattern. The class wraps two other classes: one optimized for calculation and one for display.
- The Test Case Code has been rewritten to use the JUnit framework.
- The applets were modified to use Swing.
- A Holiday applet was added.
by William Shaffer


