Java Doc for TimeZoneRegression.java in  » Internationalization-Localization » icu4j » com » ibm » icu » dev » test » timezone » 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 » Internationalization Localization » icu4j » com.ibm.icu.dev.test.timezone 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.icu.dev.test.AbstractTestLog
      com.ibm.icu.dev.test.TestFmwk
         com.ibm.icu.dev.test.timezone.TimeZoneRegression

TimeZoneRegression
public class TimeZoneRegression extends TestFmwk (Code)




Method Summary
public  voidTest4052967()
    
public  voidTest4073209()
    
public  voidTest4073215()
    
public  voidTest4084933()
    
public  voidTest4096952()
    
public  voidTest4109314()
    
public  voidTest4126678()
     CANNOT REPRODUDE Yet another _alleged_ bug in TimeZone.getOffset(), a method that never should have been made public.
public  voidTest4151406()
     TimeZone.getAvailableIDs(int) throws exception for certain values, due to a faulty constant in TimeZone.java.
public  voidTest4151429()
    
public  voidTest4154525()
     SimpleTimeZone accepts illegal DST savings values.
public  voidTest4154537()
     SimpleTimeZone.hasSameRules() doesn't work for zones with no DST and different DST parameters.
public  voidTest4154542()
     SimpleTimeZone constructors, setStartRule(), and setEndRule() don't check for out-of-range arguments.
public  voidTest4154650()
     SimpleTimeZone.getOffset accepts illegal arguments.
public  voidTest4159922()
     TimeZone constructors allow null IDs.
public  voidTest4162593()
     TimeZone broken at midnight.
public  voidTest4173604()
    
public  voidTest4176686()
     getDisplayName doesn't work with unusual savings/offsets.
public  voidTest4184229()
     SimpleTimeZone allows invalid DOM values.
public  voidTest4208960()
     SimpleTimeZone.getOffset() throws IllegalArgumentException when to get of 2/29/1996 (leap day).
public  voidTestJ449()
     Test to see if DateFormat understands zone equivalency groups.
public  voidTestJ5134()
    
 booleancheckCalendar314(GregorianCalendar testCal, TimeZone testTZ)
    
public static  voidmain(String[] args)
    



Method Detail
Test4052967
public void Test4052967()(Code)



Test4073209
public void Test4073209()(Code)



Test4073215
public void Test4073215()(Code)



Test4084933
public void Test4084933()(Code)
The expected behavior of TimeZone around the boundaries is: (Assume transition time of 2:00 AM) day of onset 1:59 AM STD = display name 1:59 AM ST 2:00 AM STD = display name 3:00 AM DT day of end 0:59 AM STD = display name 1:59 AM DT 1:00 AM STD = display name 1:00 AM ST



Test4096952
public void Test4096952()(Code)



Test4109314
public void Test4109314()(Code)



Test4126678
public void Test4126678()(Code)
CANNOT REPRODUDE Yet another _alleged_ bug in TimeZone.getOffset(), a method that never should have been made public. It's simply too hard to use correctly. The original test code failed to do the following: (1) Call Calendar.setTime() before getting the fields! (2) Use the right millis (as usual) for getOffset(); they were passing in the MILLIS field, instead of the STANDARD MILLIS IN DAY. When you fix these two problems, the test passes, as expected.



Test4151406
public void Test4151406()(Code)
TimeZone.getAvailableIDs(int) throws exception for certain values, due to a faulty constant in TimeZone.java.



Test4151429
public void Test4151429()(Code)



Test4154525
public void Test4154525()(Code)
SimpleTimeZone accepts illegal DST savings values. These values must be non-zero. There is no upper limit at this time.



Test4154537
public void Test4154537()(Code)
SimpleTimeZone.hasSameRules() doesn't work for zones with no DST and different DST parameters.



Test4154542
public void Test4154542()(Code)
SimpleTimeZone constructors, setStartRule(), and setEndRule() don't check for out-of-range arguments.



Test4154650
public void Test4154650()(Code)
SimpleTimeZone.getOffset accepts illegal arguments.



Test4159922
public void Test4159922()(Code)
TimeZone constructors allow null IDs.



Test4162593
public void Test4162593()(Code)
TimeZone broken at midnight. The TimeZone code fails to handle transitions at midnight correctly.



Test4173604
public void Test4173604()(Code)
TimeZone broken in last hour of year



Test4176686
public void Test4176686()(Code)
getDisplayName doesn't work with unusual savings/offsets.



Test4184229
public void Test4184229()(Code)
SimpleTimeZone allows invalid DOM values.



Test4208960
public void Test4208960()(Code)
SimpleTimeZone.getOffset() throws IllegalArgumentException when to get of 2/29/1996 (leap day).



TestJ449
public void TestJ449()(Code)
Test to see if DateFormat understands zone equivalency groups. It might seem that this should be a DateFormat test, but it's really a TimeZone test -- the changes to DateFormat are minor. We use two known, zones that are equivalent, where one zone has localized name data, and the other doesn't, in some locale.



TestJ5134
public void TestJ5134()(Code)
getOffset returns wrong offset for days in early 20th century



checkCalendar314
boolean checkCalendar314(GregorianCalendar testCal, TimeZone testTZ)(Code)



main
public static void main(String[] args) throws Exception(Code)



Fields inherited from com.ibm.icu.dev.test.TestFmwk
protected TestParams params(Code)(Java Doc)

Methods inherited from com.ibm.icu.dev.test.TestFmwk
protected boolean assertEquals(String message, boolean expected, boolean actual)(Code)(Java Doc)
protected boolean assertEquals(String message, long expected, long actual)(Code)(Java Doc)
protected boolean assertEquals(String message, float expected, float actual, double error)(Code)(Java Doc)
protected boolean assertEquals(String message, double expected, double actual, double error)(Code)(Java Doc)
protected boolean assertEquals(String message, Object expected, Object actual)(Code)(Java Doc)
protected boolean assertFalse(String message, boolean condition)(Code)(Java Doc)
protected boolean assertNotEquals(String message, Object expected, Object actual)(Code)(Java Doc)
protected boolean assertNotNull(String message, Object actual)(Code)(Java Doc)
protected boolean assertNotSame(String message, Object expected, Object actual)(Code)(Java Doc)
protected boolean assertNull(String message, Object actual)(Code)(Java Doc)
protected boolean assertSame(String message, Object expected, Object actual)(Code)(Java Doc)
protected boolean assertTrue(String message, boolean condition)(Code)(Java Doc)
protected int checkArray(String msg, String array, String expected)(Code)(Java Doc)
protected int checkArray(String msg, Locale array, String expected)(Code)(Java Doc)
protected int checkArray(String msg, ULocale array, String expected)(Code)(Java Doc)
protected Random createRandom()(Code)(Java Doc)
protected void fail(String message)(Code)(Java Doc)
protected static synchronized java.util.Date getDate(int year, int month, int dom)(Code)(Java Doc)
protected String getDescription()(Code)(Java Doc)
protected int getErrorCount()(Code)(Java Doc)
public PrintWriter getErrorLogPrintWriter()(Code)(Java Doc)
public int getInclusion()(Code)(Java Doc)
public PrintWriter getLogPrintWriter()(Code)(Java Doc)
protected String getMethodDescription(String name)(Code)(Java Doc)
protected TestFmwk getSubtest(String prefix) throws TestFmwkException(Code)(Java Doc)
protected Target getTargets(String targetName)(Code)(Java Doc)
public String getTranslitTestFilter()(Code)(Java Doc)
protected void handleException(Throwable e)(Code)(Java Doc)
public static String hex(char[] s)(Code)(Java Doc)
public static String hex(byte[] s)(Code)(Java Doc)
public static String hex(char ch)(Code)(Java Doc)
public static String hex(int ch)(Code)(Java Doc)
public static String hex(String s)(Code)(Java Doc)
public static String hex(StringBuffer s)(Code)(Java Doc)
protected void init() throws Exception(Code)(Java Doc)
public boolean isDateAtLeast(int year, int month, int day)(Code)(Java Doc)
public boolean isMemTracking()(Code)(Java Doc)
public boolean isModularBuild()(Code)(Java Doc)
public boolean isQuick()(Code)(Java Doc)
public boolean isTiming()(Code)(Java Doc)
public boolean isVerbose()(Code)(Java Doc)
public void msg(String message, int level, boolean incCount, boolean newln)(Code)(Java Doc)
public boolean noData()(Code)(Java Doc)
public static String prettify(String s)(Code)(Java Doc)
public static String prettify(StringBuffer s)(Code)(Java Doc)
public Target resolveTarget(TestParams params)(Code)(Java Doc)
public Target resolveTarget(TestParams params, String targetPath)(Code)(Java Doc)
public void run(String[] args)(Code)(Java Doc)
public int run(String[] args, PrintWriter log)(Code)(Java Doc)
public int runTests(TestParams params, String[] tests)(Code)(Java Doc)
protected TimeZone safeGetTimeZone(String id)(Code)(Java Doc)
public void usage()(Code)(Java Doc)
public static void usage(PrintWriter pw, String className)(Code)(Java Doc)
protected boolean validate()(Code)(Java Doc)
protected boolean validateMethod(String name)(Code)(Java Doc)

Fields inherited from com.ibm.icu.dev.test.AbstractTestLog
public static boolean dontSkipForVersion(Code)(Java Doc)

Methods inherited from com.ibm.icu.dev.test.AbstractTestLog
final public void err(String message)(Code)(Java Doc)
final public void errln(String message)(Code)(Java Doc)
public boolean isICUVersionAtLeast(int major, int minor)(Code)(Java Doc)
final public void log(String message)(Code)(Java Doc)
final public void logln(String message)(Code)(Java Doc)
abstract public void msg(String message, int level, boolean incCount, boolean newln)(Code)(Java Doc)
public boolean skipIfBeforeICU(int major, int minor)(Code)(Java Doc)
final public void warn(String message)(Code)(Java Doc)
final public void warnln(String message)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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