Java Doc for AnnotatedElementTestFrame.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » lang » 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 » Apache Harmony Java SE » org package » org.apache.harmony.lang 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.harmony.lang.AnnotatedElementTestFrame

AnnotatedElementTestFrame
abstract public class AnnotatedElementTestFrame extends TestCase (Code)
Basic framework for testing implementations of the java.lang.reflect.AnnotatedElement AnnotatedElement interface. Expected usage: concrete test extending this class should only provide objects to be tested, via realization of several abstract methods.
See Also:   AnnotatedElementTestFrame.getElement1()
See Also:   AnnotatedElementTestFrame.getElement2()
See Also:   AnnotatedElementTestFrame.getElement3()
See Also:   AnnotatedElementTestFrame.getElement4()
See Also:   
See Also:   AnnotatedElementTestFrame.getElement5()
See Also:   AnnotatedElementTestFrame.getElement6()
author:
   Alexey V. Varlamov
version:
   $Revision$

Inner Class :public @interface TagAntn
Inner Class :public @interface ValAntn
Inner Class :public @interface None
Inner Class :public @interface MissingClassValAntn
Inner Class :public @interface MissingTypeAntn



Method Summary
abstract protected  AnnotatedElementgetElement1()
     Provides an instance to be tested.
abstract protected  AnnotatedElementgetElement2()
     Provides an instance to be tested.
abstract protected  AnnotatedElementgetElement3()
     Provides an instance to be tested.
abstract protected  AnnotatedElementgetElement4()
     Provides an instance to be tested.
abstract protected  AnnotatedElementgetElement5()
     Provides an instance to be tested.
abstract protected  AnnotatedElementgetElement6()
     Provides an instance to be tested.
public  voidtestGetAnnotation()
     getAnnotation(Class) should return an annotation presented on the element1.
public  voidtestGetAnnotation2()
     getAnnotation(Class) should return an annotation presented on the element2.
public  voidtestGetAnnotation_Negative()
     getAnnotation(Class) should return null for unexpected annotation type.
public  voidtestGetAnnotation_Negative2()
     getAnnotation(Class) should return null for non-annotated instance.
public  voidtestGetAnnotation_Null()
     getAnnotation(Class) should throw NPE on null argument.
public  voidtestGetAnnotations()
     getAnnotations() should return all annotations presented on the element1.
public  voidtestGetAnnotations2()
     getAnnotations() should return all annotations presented on the element2.
public  voidtestGetAnnotations3()
     getAnnotations() should return empty array for the element3.
public  voidtestGetAnnotations4()
     getAnnotations() should skip unresolved annotation thus should return empty array for the element4.
public  voidtestGetAnnotations5()
     getAnnotations() should return all annotations presented on the element5.
public  voidtestGetAnnotations6()
     getAnnotations() should throw NoClassDefFoundError for the element6.
public  voidtestGetAnnotationsImmutable()
     getAnnotations() should return cloned array which can be safely modified by a caller.
public  voidtestGetDeclaredAnnotations()
     getDeclaredAnnotations() should return all annotations presented on the element1.
public  voidtestGetDeclaredAnnotations2()
     getDeclaredAnnotations() should return all annotations presented on the element2.
public  voidtestGetDeclaredAnnotations3()
     getDeclaredAnnotations() should return empty array for the element3.
public  voidtestGetDeclaredAnnotationsImmutable()
     getDeclaredAnnotations() should return cloned array which can be safely modified by a caller.
public  voidtestIsAnnotationPresent()
     isAnnotationPresent(Class) should return true for the annotation(s) presented.
public  voidtestIsAnnotationPresent_Negative()
     isAnnotationPresent(Class) should return false for the annotation(s) not presented.
public  voidtestIsAnnotationPresent_Null()
    



Method Detail
getElement1
abstract protected AnnotatedElement getElement1() throws Throwable(Code)
Provides an instance to be tested. The instance must be annotated exactly by the single type TagAntn TagAntn .



getElement2
abstract protected AnnotatedElement getElement2() throws Throwable(Code)
Provides an instance to be tested. The instance must be annotated exactly by the two types TagAntn TagAntn and ValAntn ValAntn .



getElement3
abstract protected AnnotatedElement getElement3() throws Throwable(Code)
Provides an instance to be tested. The instance must not be annotated.



getElement4
abstract protected AnnotatedElement getElement4() throws Throwable(Code)
Provides an instance to be tested. The instance must be annotated by the notfound.MissingAntn.



getElement5
abstract protected AnnotatedElement getElement5() throws Throwable(Code)
Provides an instance to be tested. The instance must be annotated by the MissingClassValAntn.



getElement6
abstract protected AnnotatedElement getElement6() throws Throwable(Code)
Provides an instance to be tested. The instance must be annotated by the MissingTypeAntn.



testGetAnnotation
public void testGetAnnotation() throws Throwable(Code)
getAnnotation(Class) should return an annotation presented on the element1.



testGetAnnotation2
public void testGetAnnotation2() throws Throwable(Code)
getAnnotation(Class) should return an annotation presented on the element2.



testGetAnnotation_Negative
public void testGetAnnotation_Negative() throws Throwable(Code)
getAnnotation(Class) should return null for unexpected annotation type.



testGetAnnotation_Negative2
public void testGetAnnotation_Negative2() throws Throwable(Code)
getAnnotation(Class) should return null for non-annotated instance.



testGetAnnotation_Null
public void testGetAnnotation_Null() throws Throwable(Code)
getAnnotation(Class) should throw NPE on null argument.



testGetAnnotations
public void testGetAnnotations() throws Throwable(Code)
getAnnotations() should return all annotations presented on the element1.



testGetAnnotations2
public void testGetAnnotations2() throws Throwable(Code)
getAnnotations() should return all annotations presented on the element2.



testGetAnnotations3
public void testGetAnnotations3() throws Throwable(Code)
getAnnotations() should return empty array for the element3.



testGetAnnotations4
public void testGetAnnotations4() throws Throwable(Code)
getAnnotations() should skip unresolved annotation thus should return empty array for the element4.



testGetAnnotations5
public void testGetAnnotations5() throws Throwable(Code)
getAnnotations() should return all annotations presented on the element5.



testGetAnnotations6
public void testGetAnnotations6() throws Throwable(Code)
getAnnotations() should throw NoClassDefFoundError for the element6.



testGetAnnotationsImmutable
public void testGetAnnotationsImmutable() throws Throwable(Code)
getAnnotations() should return cloned array which can be safely modified by a caller.



testGetDeclaredAnnotations
public void testGetDeclaredAnnotations() throws Throwable(Code)
getDeclaredAnnotations() should return all annotations presented on the element1.



testGetDeclaredAnnotations2
public void testGetDeclaredAnnotations2() throws Throwable(Code)
getDeclaredAnnotations() should return all annotations presented on the element2.



testGetDeclaredAnnotations3
public void testGetDeclaredAnnotations3() throws Throwable(Code)
getDeclaredAnnotations() should return empty array for the element3.



testGetDeclaredAnnotationsImmutable
public void testGetDeclaredAnnotationsImmutable() throws Throwable(Code)
getDeclaredAnnotations() should return cloned array which can be safely modified by a caller.



testIsAnnotationPresent
public void testIsAnnotationPresent() throws Throwable(Code)
isAnnotationPresent(Class) should return true for the annotation(s) presented.



testIsAnnotationPresent_Negative
public void testIsAnnotationPresent_Negative() throws Throwable(Code)
isAnnotationPresent(Class) should return false for the annotation(s) not presented.



testIsAnnotationPresent_Null
public void testIsAnnotationPresent_Null() throws Throwable(Code)
isAnnotationPresent(Class) should throw NPE on null argument



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