| org.jfree.data.time.junit.HourTests
HourTests | public class HourTests extends TestCase (Code) | | Tests for the
Hour class.
|
Constructor Summary | |
public | HourTests(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 | testDateConstructor1() In GMT, the 4pm on 21 Mar 2002 is java.util.Date(1,014,307,200,000L). | public void | testDateConstructor2() In Sydney, the 4pm on 21 Mar 2002 is java.util.Date(1,014,267,600,000L). | public void | testEquals() Tests the equals method. | public void | testEqualsSelf() Check that an Hour instance is equal to itself. | public void | testFirstHourNext() Set up an hour equal to hour zero, 1 January 1900. | public void | testFirstHourPrevious() Set up an hour equal to hour zero, 1 January 1900. | 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 | testLastHourNext() Set up an hour equal to hour zero, 1 January 1900. | public void | testLastHourPrevious() Set up an hour equal to hour zero, 1 January 1900. | public void | testNext() Some checks for the testNext() method. | public void | testNotCloneable() The
Hour class is immutable, so should not be
Cloneable . | public void | testParseHour() Problem for date parsing. | public void | testSerialization() Serialize an instance, restore it, and check for equality. |
HourTests | public HourTests(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. |
testDateConstructor1 | public void testDateConstructor1()(Code) | | In GMT, the 4pm on 21 Mar 2002 is java.util.Date(1,014,307,200,000L).
Use this to check the hour constructor.
|
testDateConstructor2 | public void testDateConstructor2()(Code) | | In Sydney, the 4pm on 21 Mar 2002 is java.util.Date(1,014,267,600,000L).
Use this to check the hour constructor.
|
testEquals | public void testEquals()(Code) | | Tests the equals method.
|
testEqualsSelf | public void testEqualsSelf()(Code) | | Check that an Hour instance is equal to itself.
SourceForge Bug ID: 558850.
|
testFirstHourNext | public void testFirstHourNext()(Code) | | Set up an hour equal to hour zero, 1 January 1900. Request the next
hour, it should be null.
|
testFirstHourPrevious | public void testFirstHourPrevious()(Code) | | Set up an hour equal to hour zero, 1 January 1900. Request the
previous hour, it should be null.
|
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.
|
testLastHourNext | public void testLastHourNext()(Code) | | Set up an hour equal to hour zero, 1 January 1900. Request the next
hour, it should be null.
|
testLastHourPrevious | public void testLastHourPrevious()(Code) | | Set up an hour equal to hour zero, 1 January 1900. Request the previous
hour, it should be null.
|
testNext | public void testNext()(Code) | | Some checks for the testNext() method.
|
testNotCloneable | public void testNotCloneable()(Code) | | The
Hour class is immutable, so should not be
Cloneable .
|
testParseHour | public void testParseHour()(Code) | | Problem for date parsing.
|
testSerialization | public void testSerialization()(Code) | | Serialize an instance, restore it, and check for equality.
|
|
|