org.ujac.util.test
Class DateUtilsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ujac.util.test.DateUtilsTest
All Implemented Interfaces:
junit.framework.Test

public class DateUtilsTest
extends junit.framework.TestCase

Name: DateUtilsTest
Description: Tests for the DateUtils class.

Author:
lauerc

Constructor Summary
DateUtilsTest()
           
 
Method Summary
protected  void setUp()
           
 void testBeginOfYear()
          Tests the beginOfYear method.
 void testCreateCalendar()
          Tests the createCalendar method.
 void testCreateChecks()
          Tests boundary checks for the createDate method.
 void testCreateDate()
          Tests the createDate method.
 void testEndOfYear()
          Tests the endOfYear method.
 void testIncrHour()
          Tests the incrHour method.
 void testIncrMinute()
          Tests the incrMinute method.
 void testIncrSecond()
          Tests the incrSecond method.
 void testNextUltimo()
          Tests the nextUltimo method.
 void testPreviousUltimo()
          Tests the previousUltimo method.
 void testSetDay()
          Tests the setDay method.
 void testSetHour()
          Tests the setHour method.
 void testSetMinute()
          Tests the setMinute method.
 void testSetMonth()
          Tests the setMonth method.
 void testSetSecond()
          Tests the setSecond method.
 void testSetYear()
          Tests the setYear method.
 void testYesterday()
          Tests the yesterday method.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
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()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception
See Also:
TestCase.setUp()

testCreateDate

public void testCreateDate()
                    throws Exception
Tests the createDate method.

Throws:
Exception - In case something went wrong.

testCreateCalendar

public void testCreateCalendar()
                        throws Exception
Tests the createCalendar method.

Throws:
Exception - In case something went wrong.

testCreateChecks

public void testCreateChecks()
                      throws Exception
Tests boundary checks for the createDate method.

Throws:
Exception - In case something went wrong.

testSetDay

public void testSetDay()
                throws Exception
Tests the setDay method.

Throws:
Exception - In case something went wrong.

testSetMonth

public void testSetMonth()
                  throws Exception
Tests the setMonth method.

Throws:
Exception - In case something went wrong.

testSetYear

public void testSetYear()
                 throws Exception
Tests the setYear method.

Throws:
Exception - In case something went wrong.

testSetHour

public void testSetHour()
                 throws Exception
Tests the setHour method.

Throws:
Exception - In case something went wrong.

testIncrHour

public void testIncrHour()
                  throws Exception
Tests the incrHour method.

Throws:
Exception - In case something went wrong.

testSetMinute

public void testSetMinute()
                   throws Exception
Tests the setMinute method.

Throws:
Exception - In case something went wrong.

testIncrMinute

public void testIncrMinute()
                    throws Exception
Tests the incrMinute method.

Throws:
Exception - In case something went wrong.

testSetSecond

public void testSetSecond()
                   throws Exception
Tests the setSecond method.

Throws:
Exception - In case something went wrong.

testIncrSecond

public void testIncrSecond()
                    throws Exception
Tests the incrSecond method.

Throws:
Exception - In case something went wrong.

testYesterday

public void testYesterday()
                   throws Exception
Tests the yesterday method.

Throws:
Exception - In case something went wrong.

testBeginOfYear

public void testBeginOfYear()
                     throws Exception
Tests the beginOfYear method.

Throws:
Exception - In case something went wrong.

testEndOfYear

public void testEndOfYear()
                   throws Exception
Tests the endOfYear method.

Throws:
Exception - In case something went wrong.

testNextUltimo

public void testNextUltimo()
                    throws Exception
Tests the nextUltimo method.

Throws:
Exception - In case something went wrong.

testPreviousUltimo

public void testPreviousUltimo()
                        throws Exception
Tests the previousUltimo method.

Throws:
Exception - In case something went wrong.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.