Java Doc for Test.java in  » Testing » DepUnit » org » depunit » annotations » 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 » Testing » DepUnit » org.depunit.annotations 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.depunit.annotations.Test

Test
public @interface Test(Code)
Mark a class or a method as part of the test.
author:
   Cedric Beust, Apr 26, 2004


Field Summary
public  booleanalwaysRun
     If set to true, this test method will always be run even if it depends on a method that failed.
public  StringcleanupMethod
    
public  StringdataProvider
     The name of the data provider for this test method.
public  ClassdataProviderClass
     The class where to look for the data provider.
public  String[]dependsOnGroups
     The list of groups this method depends on.
public  String[]dependsOnMethods
     The list of methods this method depends on.
public  Stringdescription
     The description for this method.
public  booleanenabled
     Whether methods on this class/method are enabled.
public  Class[]expectedExceptions
     The list of exceptions that a test method is expected to throw.
public  String[]groups
     The list of groups this class/method belongs to.
public  String[]hardDependencyOn
    
public  intinvocationCount
     The number of times this method should be invoked.
public  booleansequential
     If set to true, all the methods on this test class are guaranteed to run sequentially, even if the tests are currently being run with parallel="true". This attribute can only be used at the class level and will be ignored if used at the method level.
public  String[]softDependencyOn
    
public  intsuccessPercentage
     The percentage of success expected from this method.
public  StringsuiteName
     The name of the suite this test class should be placed in.
public  StringtestName
     The name of the test this test class should be placed in.
public  intthreadPoolSize
     The size of the thread pool for this method.
public  longtimeOut
     The maximum number of milliseconds this test should take.



Field Detail
alwaysRun
public boolean alwaysRun(Code)
If set to true, this test method will always be run even if it depends on a method that failed. This attribute will be ignored if this test doesn't depend on any method or group.



cleanupMethod
public String cleanupMethod(Code)



dataProvider
public String dataProvider(Code)
The name of the data provider for this test method.
See Also:   org.testng.annotations.DataProvider



dataProviderClass
public Class dataProviderClass(Code)
The class where to look for the data provider. If not specified, the dataprovider will be looked on the class of the current test method or one of its super classes. If this attribute is specified, the data provider method needs to be static on the specified class.



dependsOnGroups
public String[] dependsOnGroups(Code)
The list of groups this method depends on. Every method member of one of these groups is guaranteed to have been invoked before this method. Furthermore, if any of these methods was not a SUCCESS, this test method will not be run and will be flagged as a SKIP.



dependsOnMethods
public String[] dependsOnMethods(Code)
The list of methods this method depends on. There is no guarantee on the order on which the methods depended upon will be run, but you are guaranteed that all these methods will be run before the test method that contains this annotation is run. Furthermore, if any of these methods was not a SUCCESS, this test method will not be run and will be flagged as a SKIP. If some of these methods have been overloaded, all the overloaded versions will be run.



description
public String description(Code)
The description for this method. The string used will appear in the HTML report and also on standard output if verbose >= 2.



enabled
public boolean enabled(Code)
Whether methods on this class/method are enabled.



expectedExceptions
public Class[] expectedExceptions(Code)
The list of exceptions that a test method is expected to throw. If no exception or a different than one on this list is thrown, this test will be marked a failure.



groups
public String[] groups(Code)
The list of groups this class/method belongs to.



hardDependencyOn
public String[] hardDependencyOn(Code)



invocationCount
public int invocationCount(Code)
The number of times this method should be invoked.



sequential
public boolean sequential(Code)
If set to true, all the methods on this test class are guaranteed to run sequentially, even if the tests are currently being run with parallel="true". This attribute can only be used at the class level and will be ignored if used at the method level.



softDependencyOn
public String[] softDependencyOn(Code)



successPercentage
public int successPercentage(Code)
The percentage of success expected from this method.



suiteName
public String suiteName(Code)
The name of the suite this test class should be placed in. This attribute is ignore if @Test is not at the class level.



testName
public String testName(Code)
The name of the test this test class should be placed in. This attribute is ignore if @Test is not at the class level.



threadPoolSize
public int threadPoolSize(Code)
The size of the thread pool for this method. The method will be invoked from multiple threads as specified by invocationCount. Note: this attribute is ignored if invocationCount is not specified



timeOut
public long timeOut(Code)
The maximum number of milliseconds this test should take. If it hasn't returned after this time, it will be marked as a FAIL.





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