org.hackystat.utilities.time.interval
Class TestIntervalUtility

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.hackystat.utilities.time.interval.TestIntervalUtility
All Implemented Interfaces:
junit.framework.Test

public class TestIntervalUtility
extends junit.framework.TestCase

Tests the IntervalUtility class. Note that certain tests are commented out. It's not clear whether this class is used in Hackystat 8.

Author:
Hongbing Kou

Constructor Summary
TestIntervalUtility()
           
 
Method Summary
 void testCurrentDayValue()
          Tests current day.
 void testCurrentMonthValue()
          Tests current month.
 void testCurrentWeekValue()
          Tests current week.
 void testCurrentYearValue()
          Tests current year value.
 void testDayOptions()
          Tests day options.
 void testDayParser()
          Tests the day parser.
 void testMonthOptions()
          Tests month options.
 void testSingleton()
          Test the singleton instance implementation.
 void testWeekOptions()
          Tests week options.
 void testWeekParser()
          Tests the week parser.
 void testYearOptions()
          Tests year options.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestIntervalUtility

public TestIntervalUtility()
Method Detail

testSingleton

public void testSingleton()
Test the singleton instance implementation.


testDayOptions

public void testDayOptions()
Tests day options.


testYearOptions

public void testYearOptions()
Tests year options.


testMonthOptions

public void testMonthOptions()
Tests month options.


testWeekOptions

public void testWeekOptions()
Tests week options.


testWeekParser

public void testWeekParser()
Tests the week parser.


testDayParser

public void testDayParser()
Tests the day parser.


testCurrentYearValue

public void testCurrentYearValue()
Tests current year value.


testCurrentMonthValue

public void testCurrentMonthValue()
Tests current month.


testCurrentDayValue

public void testCurrentDayValue()
Tests current day.


testCurrentWeekValue

public void testCurrentWeekValue()
Tests current week.