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


com.ibm.icu.tests.ICUTestCase

All known Subclasses:   com.ibm.icu.tests.DecimalFormatSymbolsTest,  com.ibm.icu.tests.NumberFormatTest,  com.ibm.icu.tests.SimpleDateFormatTest,  com.ibm.icu.tests.CollationKeyTest,  com.ibm.icu.tests.DecimalFormatTest,  com.ibm.icu.tests.MessageFormatTest,  com.ibm.icu.tests.CalendarTest,  com.ibm.icu.tests.CollatorTest,  com.ibm.icu.tests.BreakIteratorTest,  com.ibm.icu.tests.DateFormatTest,  com.ibm.icu.tests.TimeZoneTest,  com.ibm.icu.tests.DateFormatSymbolsTest,  com.ibm.icu.tests.ULocaleTest,
ICUTestCase
abstract public class ICUTestCase extends TestCase (Code)
Implement boilerplate tests. Currently there is only one method, testEHCS, which tests equals, hashCode, clone, and serialization.


Field Summary
final public static  booleantestingWrapper
    


Method Summary
public static  voidassertArraysEqual(Object lhs, Object rhs)
     Fail if the arrays are not equal.
public static  voidassertArraysNotEqual(Object lhs, Object rhs)
     Fail if the arrays are equal.
public static  voidassertNotEqual(Object lhs, Object rhs)
     Assert that two objects are _not_ equal.
public static  voidassertNotEqual(long lhs, long rhs)
    
public static  ObjectcloneComplex(Object obj)
    
protected  voidsetUp()
    
protected  voidtearDown()
    
public static  voidtestEHCS(Object obj, Object eq, Object neq)
     Test whether equality, hashCode, clone, and serialization work as expected.

Field Detail
testingWrapper
final public static boolean testingWrapper(Code)





Method Detail
assertArraysEqual
public static void assertArraysEqual(Object lhs, Object rhs)(Code)
Fail if the arrays are not equal. To be equal, the arrays must be the same length, and each element in the left array must compare equal to the corresponding element of the right array. Also fails if one of the objects is not an array.
Parameters:
  lhs - the left array
Parameters:
  rhs - the right array



assertArraysNotEqual
public static void assertArraysNotEqual(Object lhs, Object rhs)(Code)
Fail if the arrays are equal. Also fails if one or the other argument is not an array.
Parameters:
  lhs - the left array
Parameters:
  rhs - the right array



assertNotEqual
public static void assertNotEqual(Object lhs, Object rhs)(Code)
Assert that two objects are _not_ equal. Curiously missing from Assert.
Parameters:
  lhs - an object to test, may be null
Parameters:
  rhs - an object to test, may be null



assertNotEqual
public static void assertNotEqual(long lhs, long rhs)(Code)



cloneComplex
public static Object cloneComplex(Object obj)(Code)



setUp
protected void setUp() throws Exception(Code)



tearDown
protected void tearDown() throws Exception(Code)



testEHCS
public static void testEHCS(Object obj, Object eq, Object neq)(Code)
Test whether equality, hashCode, clone, and serialization work as expected. Equals(Object) is assumed to return false (not throw an exception) if passed null or an object of an incompatible class. Hashcodes must be equal iff the two objects compare equal. No attempt is made to evaluate the quality of the hashcode distribution, so (in particular) degenerate hashcode implementations will pass this test. Clone will be tested if the method "clone" is public on the class of obj. It is assumed to return an object that compares equal to obj. Serialization will be tested if object implements Serializable or Externalizable. It is assumed the serialized/deserialized object compares equal to obj.
Parameters:
  obj - the object to test
Parameters:
  eq - an object that should compare equal to, but is not the same as, obj. it should be assignable to the class of obj.
Parameters:
  neq - a non-null object that should not compare equal to obj. it should be assignable to the class of obj.



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