com.silverpeas.calendar
Class DateTest

java.lang.Object
  extended by com.silverpeas.calendar.DateTest

public class DateTest
extends Object

Unit tests on the Date objects.


Constructor Summary
DateTest()
           
 
Method Summary
 void cloneADateCreatesANewInstanceForTheSameDate()
          Test of clone method, of class Date.
 void createsADateFromYearMonthAndDayIndication()
          Test of dateOn method, of class Date.
 void createsATodayDate()
          Test of today method, of class Date.
 void createsATomorrowDate()
          Test of tomorrow method, of class Date.
 void createsAYesterdayDate()
          Test of yesterday method, of class Date.
 void isDefinedNotDefined()
           
 void nextTodayIsTomorrow()
          Test of next method, of class Date.
 void previousTodayIsYesterday()
          Test of previous method, of class Date.
 void setUp()
           
static void setUpClass()
           
 void tearDown()
           
static void tearDownClass()
           
 void theICalInUTCRepresentation()
          Test of toICalInUTC method, of class Date.
 void theICalRepresentation()
          Test of toICal method, of class Date.
 void theISO8601Representation()
          Test of toISO8601 method, of class Date.
 void todayIsAfterYesterday()
          Test of after method, of class Date.
 void todayIsBeforeTomorrow()
          Test of before method, of class Date.
 void twoSameDatesAreEqual()
          Test of equals method, of class Date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTest

public DateTest()
Method Detail

setUpClass

public static void setUpClass()
                       throws Exception
Throws:
Exception

tearDownClass

public static void tearDownClass()
                          throws Exception
Throws:
Exception

setUp

public void setUp()

tearDown

public void tearDown()

createsATodayDate

public void createsATodayDate()
Test of today method, of class Date.


createsATomorrowDate

public void createsATomorrowDate()
Test of tomorrow method, of class Date.


createsAYesterdayDate

public void createsAYesterdayDate()
Test of yesterday method, of class Date.


createsADateFromYearMonthAndDayIndication

public void createsADateFromYearMonthAndDayIndication()
Test of dateOn method, of class Date.


cloneADateCreatesANewInstanceForTheSameDate

public void cloneADateCreatesANewInstanceForTheSameDate()
Test of clone method, of class Date.


theISO8601Representation

public void theISO8601Representation()
Test of toISO8601 method, of class Date.


theICalRepresentation

public void theICalRepresentation()
Test of toICal method, of class Date.


theICalInUTCRepresentation

public void theICalInUTCRepresentation()
Test of toICalInUTC method, of class Date.


nextTodayIsTomorrow

public void nextTodayIsTomorrow()
Test of next method, of class Date.


previousTodayIsYesterday

public void previousTodayIsYesterday()
Test of previous method, of class Date.


todayIsBeforeTomorrow

public void todayIsBeforeTomorrow()
Test of before method, of class Date.


todayIsAfterYesterday

public void todayIsAfterYesterday()
Test of after method, of class Date.


twoSameDatesAreEqual

public void twoSameDatesAreEqual()
Test of equals method, of class Date.


isDefinedNotDefined

public void isDefinedNotDefined()


Copyright © 2016 Silverpeas. All Rights Reserved.