Save This Page
Home » jcommon-1.0.13 » org.jfree.date.junit » [javadoc | source]
org.jfree.date.junit
public class: SpreadsheetDateTests [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.jfree.date.junit.SpreadsheetDateTests
Tests for the SpreadsheetDate class.
Constructor:
 public SpreadsheetDateTests(String name) 
    Creates a new test case.
    Parameters:
    name - the name.
Method from org.jfree.date.junit.SpreadsheetDateTests Summary:
setUp,   suite,   test01Feb2000ToSerial,   test01Jan1900ToSerial,   test01Jan2000ToSerial,   test01Mar1900ToSerial,   test12Nov2001GetDayOfWeek,   test1Jan1900GetDayOfWeek,   test1mar2000ToSerial,   test28Feb1900ToSerial,   test28Feb2000ToSerial,   test29feb2000ToSerial,   test31Dec1999ToSerial,   test31Jan2000ToSerial,   test36584,   test36585,   test36586,   test37986,   test37987,   test38352,   test38353,   testS2GetDayOfMonth,   testS2GetMonth,   testS2GetYYYY,   testSerialization
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.date.junit.SpreadsheetDateTests Detail:
 protected  void setUp() 
    Setup.
 public static Test suite() 
    Returns a test suite for the JUnit test runner.
 public  void test01Feb2000ToSerial() 
    Create a date for 01-Feb-2000: the serial number should be 36557.
 public  void test01Jan1900ToSerial() 
    Create a date for 01-Jan-1900: the serial number should be 2.
 public  void test01Jan2000ToSerial() 
    Create a date for 1-Jan-2000: the serial number should be 36526.
 public  void test01Mar1900ToSerial() 
    Create a date for 01-Mar-1900: the serial number should be 61.
 public  void test12Nov2001GetDayOfWeek() 
    12 November 2001 is a Monday.
 public  void test1Jan1900GetDayOfWeek() 
    1 January 1900 is a Thursday.
 public  void test1mar2000ToSerial() 
    Create a date for 1-Mar-2000: the serial number should be 36586.
 public  void test28Feb1900ToSerial() 
    Create a date for 28-Feb-1900: the serial number should be 60.
 public  void test28Feb2000ToSerial() 
    Create a date for 28-Feb-2000: the serial number should be 36584.
 public  void test29feb2000ToSerial() 
    Create a date for 29-Feb-2000: the serial number should be 36585.
 public  void test31Dec1999ToSerial() 
    Create a date for 31-Dec-1999: the serial number should be 36525.
 public  void test31Jan2000ToSerial() 
    Create a date for 31-Jan-2000: the serial number should be 36556.
 public  void test36584() 
    Create a date for serial number 36584: it should be 28-Feb-2000.
 public  void test36585() 
    Create a date for serial number 36585: it should be 29-Feb-2000.
 public  void test36586() 
    Create a date for serial number 36586: it should be 1-Mar-2000.
 public  void test37986() 
    Day 37986 is 31 Dec 2003.
 public  void test37987() 
    Day 37987 is 1 Jan 2004.
 public  void test38352() 
    Day 38352 is 31 Dec 2004.
 public  void test38353() 
    Day 38353 is 1 Jan 2005.
 public  void testS2GetDayOfMonth() 
    Day 2 is the first of the month.
 public  void testS2GetMonth() 
    Day 2 is in January.
 public  void testS2GetYYYY() 
    Day 2 is in 1900.
 public  void testSerialization() 
    Serialize an instance, restore it, and check for equality.