|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.jrefinery.date.junit.SerialDateTests
public class SerialDateTests
| Field Summary | |
|---|---|
protected SerialDate |
Nov_9_2001
|
| Constructor Summary | |
|---|---|
SerialDateTests(java.lang.String name)
|
|
| Method Summary | |
|---|---|
protected void |
setUp()
|
static junit.framework.Test |
suite()
|
void |
testIsLeapYear2000()
2000 is a leap year. |
void |
testIsNotLeapYear1900()
1900 is not a leap year. |
void |
testLeapYearCount1899()
The number of leap years from 1900 up-to-and-including 1899 is 0. |
void |
testLeapYearCount1903()
The number of leap years from 1900 up-to-and-including 1903 is 0. |
void |
testLeapYearCount1904()
The number of leap years from 1900 up-to-and-including 1904 is 1. |
void |
testLeapYearCount1999()
The number of leap years from 1900 up-to-and-including 1999 is 24. |
void |
testLeapYearCount2000()
The number of leap years from 1900 up-to-and-including 2000 is 25. |
void |
testMondayFollowingFriday9Nov2001()
Monday following Friday 9 November 2001 should be 12 November. |
void |
testMondayNearest22Jan1970()
The Monday nearest to 22nd January 1970 falls on the 19th. |
void |
testMondayNearestFriday9Nov2001()
Monday nearest Friday 9 November 2001 should be 12 November. |
void |
testMondayPrecedingFriday9Nov2001()
Monday preceding Friday 9 November 2001 should be 5 November. |
void |
testMonthCodeToStringCode()
|
void |
testStringToMonthCode()
Test the conversion of a string to a month. |
void |
testStringToWeekday()
Test the conversion of a string to a weekday. |
void |
testWeekdayCodeToString()
Test that the conversion of days to strings returns the right result. |
| 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 |
| Field Detail |
|---|
protected SerialDate Nov_9_2001
| Constructor Detail |
|---|
public SerialDateTests(java.lang.String name)
| Method Detail |
|---|
public static junit.framework.Test suite()
protected void setUp()
setUp in class junit.framework.TestCasepublic void testMondayPrecedingFriday9Nov2001()
public void testMondayFollowingFriday9Nov2001()
public void testMondayNearestFriday9Nov2001()
public void testMondayNearest22Jan1970()
public void testWeekdayCodeToString()
public void testStringToWeekday()
public void testStringToMonthCode()
public void testMonthCodeToStringCode()
public void testIsNotLeapYear1900()
public void testIsLeapYear2000()
public void testLeapYearCount1899()
public void testLeapYearCount1903()
public void testLeapYearCount1904()
public void testLeapYearCount1999()
public void testLeapYearCount2000()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||