org.davesag.generica.test
Class DateUtilsTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.davesag.generica.test.DateUtilsTest
All Implemented Interfaces:
Serializable, Test

public class DateUtilsTest
extends TestCase
implements Serializable

DateUtilsTest is collection of all of the tests on the DateUtils.

Since:
Generica 1.0
Version:
CVS Revision $Id: DateUtilsTest.java,v 1.4 2004/03/30 13:00:42 davesag Exp $
Author:
Dave Sag http://www.davesag.com
See Also:
Serialized Form

Constructor Summary
DateUtilsTest()
          null constructor
DateUtilsTest(String name)
          constructor that takes a test name
 
Method Summary
static Test suite()
          the test suite
 void testDaysUntil()
          tests that days until 3 days time is 3.
 void testDaysUntilToday()
          tests that days until today is 0.
 String toString()
          test name
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateUtilsTest

public DateUtilsTest()
null constructor


DateUtilsTest

public DateUtilsTest(String name)
constructor that takes a test name

Parameters:
name - the name of this suite of tests
Method Detail

testDaysUntilToday

public void testDaysUntilToday()
tests that days until today is 0.


testDaysUntil

public void testDaysUntil()
tests that days until 3 days time is 3.


suite

public static Test suite()
the test suite

Returns:
suite of tests

toString

public String toString()
test name

Returns:
test name


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.