Java Doc for QuarterTests.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.QuarterTests

QuarterTests
public class QuarterTests extends TestCase (Code)
Tests for the {link Quarter} class.



Constructor Summary
public  QuarterTests(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  voidtestConstructor()
     Some tests for the constructor with (int, int) arguments.
public  voidtestDateConstructor1()
     In GMT, the end of Q1 2002 is java.util.Date(1017619199999L).
public  voidtestDateConstructor2()
     In Istanbul, the end of Q1 2002 is java.util.Date(1017608399999L).
public  voidtestEquals()
     Tests the equals method.
public  voidtestEqualsSelf()
     Check that a Quarter 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 Quarter class is immutable, so should not be Cloneable .
public  voidtestParseQuarter()
     Test the string parsing code...
public  voidtestQ1Y1900Next()
     Set up a quarter equal to Q1 1900.
public  voidtestQ1Y1900Previous()
     Set up a quarter equal to Q1 1900.
public  voidtestQ4Y9999Next()
     Set up a quarter equal to Q4 9999.
public  voidtestQ4Y9999Previous()
     Set up a quarter equal to Q4 9999.
public  voidtestSerialization()
     Serialize an instance, restore it, and check for equality.


Constructor Detail
QuarterTests
public QuarterTests(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.



testConstructor
public void testConstructor()(Code)
Some tests for the constructor with (int, int) arguments. Covers bug report 1377239.



testDateConstructor1
public void testDateConstructor1()(Code)
In GMT, the end of Q1 2002 is java.util.Date(1017619199999L). Use this to check the quarter constructor.



testDateConstructor2
public void testDateConstructor2()(Code)
In Istanbul, the end of Q1 2002 is java.util.Date(1017608399999L). Use this to check the quarter constructor.



testEquals
public void testEquals()(Code)
Tests the equals method.



testEqualsSelf
public void testEqualsSelf()(Code)
Check that a Quarter 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 Quarter class is immutable, so should not be Cloneable .



testParseQuarter
public void testParseQuarter()(Code)
Test the string parsing code...



testQ1Y1900Next
public void testQ1Y1900Next()(Code)
Set up a quarter equal to Q1 1900. Request the next quarter, it should be Q2 1900.



testQ1Y1900Previous
public void testQ1Y1900Previous()(Code)
Set up a quarter equal to Q1 1900. Request the previous quarter, it should be null.



testQ4Y9999Next
public void testQ4Y9999Next()(Code)
Set up a quarter equal to Q4 9999. Request the next quarter, it should be null.



testQ4Y9999Previous
public void testQ4Y9999Previous()(Code)
Set up a quarter equal to Q4 9999. Request the previous quarter, it should be Q3 9999.



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.