All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.markcrocker.thoughtworks.TestMyDate

java.lang.Object
   |
   +----com.markcrocker.thoughtworks.TestMyDate

public class TestMyDate
extends Object

Variable Index

 o debugLevel

Constructor Index

 o TestMyDate()

Method Index

 o main(String[])
 o syntaxMessage()
syntaxMessage.
 o testDateExceptions()
testDateExceptions.
 o testStandardDates()
testStandardDates.

Variables

 o debugLevel
 private int debugLevel

Constructors

 o TestMyDate
 public TestMyDate()

Methods

 o testStandardDates
 static boolean testStandardDates()
testStandardDates. Basic tests of MyDate class using several known dates, comparing the number of days between and verifying the answers.

Returns:
testPassed. True if all tests were passed, false otherwise.
 o testDateExceptions
 static void testDateExceptions()
testDateExceptions. Tests of MyDate class exceptions. Checks to make sure that known bad dates are caught by the constructor checking algorithms. Does not verify results... yet.

 o syntaxMessage
 private static void syntaxMessage()
syntaxMessage. Prints out syntax/help message.

 o main
 public static void main(String args[]) throws BadDateException

All Packages  Class Hierarchy  This Package  Previous  Next  Index