Java Doc for DayTests.java in  » Chart » jfreechart » org » jfree » data » time » junit » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Chart » jfreechart » org.jfree.data.time.junit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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  voidsetUp()
     Common test setup.
public static  Testsuite()
     Returns the tests as a test suite.
public  voidtest1Jan1900Next()
     Set up a day equal to 1 January 1900.
public  voidtest1Jan1900Previous()
     Set up a day equal to 1 January 1900.
public  voidtest31Dec9999Next()
     Set up a day equal to 31 December 9999.
public  voidtest31Dec9999Previous()
     Set up a day equal to 31 December 9999.
public  voidtestDateConstructor1()
     In GMT, the end of 29 Feb 2004 is java.util.Date(1,078,099,199,999L).
public  voidtestDateConstructor2()
     In Helsinki, the end of 29 Feb 2004 is java.util.Date(1,078,091,999,999L).
public  voidtestEquals()
     Tests the equals method.
public  voidtestEqualsSelf()
     Check that a Day instance is equal to itself.
public  voidtestGetEnd()
     Some checks for the getEnd() method.
public  voidtestGetFirstMillisecond()
     Some checks for the getFirstMillisecond() method.
public  voidtestGetFirstMillisecondWithCalendar()
     Some checks for the getFirstMillisecond(TimeZone) method.
public  voidtestGetFirstMillisecondWithTimeZone()
     Some checks for the getFirstMillisecond(TimeZone) method.
public  voidtestGetLastMillisecond()
     Some checks for the getLastMillisecond() method.
public  voidtestGetLastMillisecondWithCalendar()
     Some checks for the getLastMillisecond(TimeZone) method.
public  voidtestGetLastMillisecondWithTimeZone()
     Some checks for the getLastMillisecond(TimeZone) method.
public  voidtestGetSerialIndex()
     Some checks for the getSerialIndex() method.
public  voidtestGetStart()
     Some checks for the getStart() method.
public  voidtestHashcode()
     Two objects that are equal are required to return the same hashCode.
public  voidtestNext()
     Some checks for the testNext() method.
public  voidtestNotCloneable()
     The Day class is immutable, so should not be Cloneable .
public  voidtestParseDay()
     Problem for date parsing.

This test works only correct if the short pattern of the date format is "dd/MM/yyyy".

public  voidtestSerialization()
     Serialize an instance, restore it, and check for equality.


Constructor Detail
DayTests
public DayTests(String name)(Code)
Constructs a new set of tests.
Parameters:
  name - the name of the tests.




Method Detail
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.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.