| org.jfree.data.time.junit.DayTests
DayTests | public class DayTests extends TestCase (Code) | | Tests for the
Day class.
|
Constructor Summary | |
public | DayTests(String name) Constructs a new set of tests. |
Method Summary | |
protected void | setUp() Common test setup. | public static Test | suite() Returns the tests as a test suite. | public void | test1Jan1900Next() Set up a day equal to 1 January 1900. | public void | test1Jan1900Previous() Set up a day equal to 1 January 1900. | public void | test31Dec9999Next() Set up a day equal to 31 December 9999. | public void | test31Dec9999Previous() Set up a day equal to 31 December 9999. | public void | testDateConstructor1() In GMT, the end of 29 Feb 2004 is java.util.Date(1,078,099,199,999L). | public void | testDateConstructor2() In Helsinki, the end of 29 Feb 2004 is
java.util.Date(1,078,091,999,999L). | public void | testEquals() Tests the equals method. | public void | testEqualsSelf() Check that a Day instance is equal to itself. | public void | testGetEnd() Some checks for the getEnd() method. | public void | testGetFirstMillisecond() Some checks for the getFirstMillisecond() method. | public void | testGetFirstMillisecondWithCalendar() Some checks for the getFirstMillisecond(TimeZone) method. | public void | testGetFirstMillisecondWithTimeZone() Some checks for the getFirstMillisecond(TimeZone) method. | public void | testGetLastMillisecond() Some checks for the getLastMillisecond() method. | public void | testGetLastMillisecondWithCalendar() Some checks for the getLastMillisecond(TimeZone) method. | public void | testGetLastMillisecondWithTimeZone() Some checks for the getLastMillisecond(TimeZone) method. | public void | testGetSerialIndex() Some checks for the getSerialIndex() method. | public void | testGetStart() Some checks for the getStart() method. | public void | testHashcode() Two objects that are equal are required to return the same hashCode. | public void | testNext() Some checks for the testNext() method. | public void | testNotCloneable() The
Day class is immutable, so should not be
Cloneable . | public void | testParseDay() Problem for date parsing.
This test works only correct if the short pattern of the date
format is "dd/MM/yyyy". | public void | testSerialization() Serialize an instance, restore it, and check for equality. |
DayTests | public DayTests(String name)(Code) | | Constructs a new set of tests.
Parameters: name - the name of the tests. |
setUp | protected void setUp()(Code) | | Common test setup.
|
suite | public static Test suite()(Code) | | Returns the tests as a test suite.
The test suite. |
test1Jan1900Next | public void test1Jan1900Next()(Code) | | Set up a day equal to 1 January 1900. Request the next day, it should
be 2 January 1900.
|
test1Jan1900Previous | public void test1Jan1900Previous()(Code) | | Set up a day equal to 1 January 1900. Request the previous day, it
should be null.
|
test31Dec9999Next | public void test31Dec9999Next()(Code) | | Set up a day equal to 31 December 9999. Request the next day, it should
be null.
|
test31Dec9999Previous | public void test31Dec9999Previous()(Code) | | Set up a day equal to 31 December 9999. Request the previous day, it
should be 30 December 9999.
|
testDateConstructor1 | public void testDateConstructor1()(Code) | | In GMT, the end of 29 Feb 2004 is java.util.Date(1,078,099,199,999L).
Use this to check the day constructor.
|
testDateConstructor2 | public void testDateConstructor2()(Code) | | In Helsinki, the end of 29 Feb 2004 is
java.util.Date(1,078,091,999,999L). Use this to check the Day
constructor.
|
testEquals | public void testEquals()(Code) | | Tests the equals method.
|
testEqualsSelf | public void testEqualsSelf()(Code) | | Check that a Day instance is equal to itself.
SourceForge Bug ID: 558850.
|
testGetEnd | public void testGetEnd()(Code) | | Some checks for the getEnd() method.
|
testGetFirstMillisecond | public void testGetFirstMillisecond()(Code) | | Some checks for the getFirstMillisecond() method.
|
testGetFirstMillisecondWithCalendar | public void testGetFirstMillisecondWithCalendar()(Code) | | Some checks for the getFirstMillisecond(TimeZone) method.
|
testGetFirstMillisecondWithTimeZone | public void testGetFirstMillisecondWithTimeZone()(Code) | | Some checks for the getFirstMillisecond(TimeZone) method.
|
testGetLastMillisecond | public void testGetLastMillisecond()(Code) | | Some checks for the getLastMillisecond() method.
|
testGetLastMillisecondWithCalendar | public void testGetLastMillisecondWithCalendar()(Code) | | Some checks for the getLastMillisecond(TimeZone) method.
|
testGetLastMillisecondWithTimeZone | public void testGetLastMillisecondWithTimeZone()(Code) | | Some checks for the getLastMillisecond(TimeZone) method.
|
testGetSerialIndex | public void testGetSerialIndex()(Code) | | Some checks for the getSerialIndex() method.
|
testGetStart | public void testGetStart()(Code) | | Some checks for the getStart() method.
|
testHashcode | public void testHashcode()(Code) | | Two objects that are equal are required to return the same hashCode.
|
testNext | public void testNext()(Code) | | Some checks for the testNext() method.
|
testNotCloneable | public void testNotCloneable()(Code) | | The
Day class is immutable, so should not be
Cloneable .
|
testParseDay | public void testParseDay() throws ParseException(Code) | | Problem for date parsing.
This test works only correct if the short pattern of the date
format is "dd/MM/yyyy". If not, this test will result in a
false negative.
throws: ParseException - on parsing errors. |
testSerialization | public void testSerialization()(Code) | | Serialize an instance, restore it, and check for equality.
|
|
|