Save This Page
Home » jcommon-1.0.13 » org.jfree.date.junit » [javadoc | source]
org.jfree.date.junit
public class: SerialDateTests [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.jfree.date.junit.SerialDateTests
Some JUnit tests for the SerialDate class.
Constructor:
 public SerialDateTests(String name) 
    Creates a new test case.
    Parameters:
    name - the name.
Method from org.jfree.date.junit.SerialDateTests Summary:
setUp,   suite,   test1096282,   testAddMonths,   testAddMonthsTo1Jan2003,   testAddMonthsTo5Oct2003,   testAddMonthsTo9Nov2001,   testIsLeapYear2000,   testIsNotLeapYear1900,   testLeapYearCount1899,   testLeapYearCount1903,   testLeapYearCount1904,   testLeapYearCount1999,   testLeapYearCount2000,   testMondayFollowingFriday9Nov2001,   testMondayNearest22Jan1970,   testMondayNearestFriday9Nov2001,   testMondayPrecedingFriday9Nov2001,   testMonthCodeToStringCode,   testSerialization,   testStringToMonthCode,   testStringToWeekday,   testWeekdayCodeToString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.date.junit.SerialDateTests Detail:
 protected  void setUp() 
    Problem set up.
 public static Test suite() 
    Returns a test suite for the JUnit test runner.
 public  void test1096282() 
    A test for bug report 1096282 (now fixed).
 public  void testAddMonths() 
    Miscellaneous tests for the addMonths() method.
 public  void testAddMonthsTo1Jan2003() 
    A test case for a reported bug, now fixed.
 public  void testAddMonthsTo5Oct2003() 
    A test case for a reported bug, now fixed.
 public  void testAddMonthsTo9Nov2001() 
    9 Nov 2001 plus two months should be 9 Jan 2002.
 public  void testIsLeapYear2000() 
    2000 is a leap year.
 public  void testIsNotLeapYear1900() 
    1900 is not a leap year.
 public  void testLeapYearCount1899() 
    The number of leap years from 1900 up-to-and-including 1899 is 0.
 public  void testLeapYearCount1903() 
    The number of leap years from 1900 up-to-and-including 1903 is 0.
 public  void testLeapYearCount1904() 
    The number of leap years from 1900 up-to-and-including 1904 is 1.
 public  void testLeapYearCount1999() 
    The number of leap years from 1900 up-to-and-including 1999 is 24.
 public  void testLeapYearCount2000() 
    The number of leap years from 1900 up-to-and-including 2000 is 25.
 public  void testMondayFollowingFriday9Nov2001() 
    Monday following Friday 9 November 2001 should be 12 November.
 public  void testMondayNearest22Jan1970() 
    The Monday nearest to 22nd January 1970 falls on the 19th.
 public  void testMondayNearestFriday9Nov2001() 
    Monday nearest Friday 9 November 2001 should be 12 November.
 public  void testMondayPrecedingFriday9Nov2001() 
    Monday preceding Friday 9 November 2001 should be 5 November.
 public  void testMonthCodeToStringCode() 
    Tests the conversion of a month code to a string.
 public  void testSerialization() 
    Serialize an instance, restore it, and check for equality.
 public  void testStringToMonthCode() 
    Test the conversion of a string to a month. Note that this test will fail if the default locale doesn't use English month names...devise a better test!
 public  void testStringToWeekday() 
    Test the conversion of a string to a weekday. Note that this test will fail if the default locale doesn't use English weekday names...devise a better test!
 public  void testWeekdayCodeToString() 
    Problem that the conversion of days to strings returns the right result. Actually, this result depends on the Locale so this test needs to be modified.