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

WeekTests
public class WeekTests extends TestCase (Code)
Tests for the Week class.



Constructor Summary
public  WeekTests(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  voidtestBug1448828()
     A test case for bug 1448828.
public  voidtestBug1498805()
     A test case for bug 1498805.
public  voidtestEquals()
     Tests the equals method.
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 Week class is immutable, so should not be Cloneable .
public  voidtestSerialization()
     Serialize an instance, restore it, and check for equality.
public  voidtestW1Y1900Next()
     Request the week after week 1, 1900: it should be week 2, 1900.
public  voidtestW1Y1900Previous()
     Request the week before week 1, 1900: it should be null.
public  voidtestW52Y9999Next()
     Request the week after w52, 9999: it should be null.
public  voidtestW52Y9999Previous()
     Request the week before w52, 9999: it should be week 51, 9999.
public  voidtestWeek12005()
     The first week in 2005 should span the range: TimeZone | Start Millis | End Millis | Start Date | End Date -----------------+---------------+---------------+-------------+------------ Europe/London | 1104710400000 | 1105315199999 | 3-Jan-2005 | 9-Jan-2005 Europe/Paris | 1104706800000 | 1105311599999 | 3-Jan-2005 | 2-Jan-2005 America/New_York | 1104037200000 | 1104641999999 | 26-Dec-2004 | 1-Jan-2005 In London and Paris, Monday is the first day of the week, while in the US it is Sunday.
public  voidtestWeek532005()
     The 53rd week in 2004 in London and Paris should span the range: TimeZone | Start Millis | End Millis | Start Date | End Date -----------------+---------------+---------------+-------------+------------ Europe/London | 1104105600000 | 1104710399999 | 27-Dec-2004 | 02-Jan-2005 Europe/Paris | 1104102000000 | 1104706799999 | 27-Dec-2004 | 02-Jan-2005 The 53rd week in 2005 in New York should span the range: TimeZone | Start Millis | End Millis | Start Date | End Date -----------------+---------------+---------------+-------------+------------ America/New_York | 1135486800000 | 1136091599999 | 25-Dec-2005 | 31-Dec-2005 In London and Paris, Monday is the first day of the week, while in the US it is Sunday.


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



testBug1448828
public void testBug1448828()(Code)
A test case for bug 1448828.



testBug1498805
public void testBug1498805()(Code)
A test case for bug 1498805.



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



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 Week class is immutable, so should not be Cloneable .



testSerialization
public void testSerialization()(Code)
Serialize an instance, restore it, and check for equality.



testW1Y1900Next
public void testW1Y1900Next()(Code)
Request the week after week 1, 1900: it should be week 2, 1900.



testW1Y1900Previous
public void testW1Y1900Previous()(Code)
Request the week before week 1, 1900: it should be null.



testW52Y9999Next
public void testW52Y9999Next()(Code)
Request the week after w52, 9999: it should be null.



testW52Y9999Previous
public void testW52Y9999Previous()(Code)
Request the week before w52, 9999: it should be week 51, 9999.



testWeek12005
public void testWeek12005()(Code)
The first week in 2005 should span the range: TimeZone | Start Millis | End Millis | Start Date | End Date -----------------+---------------+---------------+-------------+------------ Europe/London | 1104710400000 | 1105315199999 | 3-Jan-2005 | 9-Jan-2005 Europe/Paris | 1104706800000 | 1105311599999 | 3-Jan-2005 | 2-Jan-2005 America/New_York | 1104037200000 | 1104641999999 | 26-Dec-2004 | 1-Jan-2005 In London and Paris, Monday is the first day of the week, while in the US it is Sunday. Previously, we were using these values, but see Java Bug ID 4960215: TimeZone | Start Millis | End Millis | Start Date | End Date -----------------+---------------+---------------+-------------+------------ Europe/London | 1104105600000 | 1104710399999 | 27-Dec-2004 | 2-Jan-2005 Europe/Paris | 1104102000000 | 1104706799999 | 27-Dec-2004 | 2-Jan-2005 America/New_York | 1104037200000 | 1104641999999 | 26-Dec-2004 | 1-Jan-2005



testWeek532005
public void testWeek532005()(Code)
The 53rd week in 2004 in London and Paris should span the range: TimeZone | Start Millis | End Millis | Start Date | End Date -----------------+---------------+---------------+-------------+------------ Europe/London | 1104105600000 | 1104710399999 | 27-Dec-2004 | 02-Jan-2005 Europe/Paris | 1104102000000 | 1104706799999 | 27-Dec-2004 | 02-Jan-2005 The 53rd week in 2005 in New York should span the range: TimeZone | Start Millis | End Millis | Start Date | End Date -----------------+---------------+---------------+-------------+------------ America/New_York | 1135486800000 | 1136091599999 | 25-Dec-2005 | 31-Dec-2005 In London and Paris, Monday is the first day of the week, while in the US it is Sunday.



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