Java Doc for AllTests.java in  » Testing » jakarta-jmeter » org » apache » jorphan » test » 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 » jakarta jmeter » org.apache.jorphan.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jorphan.test.AllTests

AllTests
final public class AllTests (Code)
Provides a quick and easy way to run all junit unit tests in your java project. It will find all unit test classes and run all their test methods. There is no need to configure it in any way to find these classes except to give it a path to search.

Here is an example Ant target (See Ant at Apache) that runs all your unit tests:

 <target name="test" depends="compile">
 <java classname="org.apache.jorphan.test.AllTests" fork="yes">
 <classpath>
 <path refid="YOUR_CLASSPATH"/>
 <pathelement location="ROOT_DIR_OF_YOUR_COMPILED_CLASSES"/>
 </classpath>
 <arg value="SEARCH_PATH/"/>
 <arg value="PROPERTY_FILE"/>
 <arg value="NAME_OF_UNITTESTMANAGER_CLASS"/>
 </java>
 </target>
 
YOUR_CLASSPATH
Refers to the classpath that includes all jars and libraries need to run your unit tests
ROOT_DIR_OF_YOUR_COMPILED_CLASSES
The classpath should include the directory where all your project's classes are compiled to, if it doesn't already.
SEARCH_PATH
The first argument tells AllTests where to look for unit test classes to execute. In most cases, it is identical to ROOT_DIR_OF_YOUR_COMPILED_CLASSES. You can specify multiple directories or jars to search by providing a comma-delimited list.
PROPERTY_FILE
A simple property file that sets logging parameters. It is optional and is only relevant if you use the same logging packages that JOrphan uses.
NAME_OF_UNITTESTMANAGER_CLASS
If your system requires some configuration to run correctly, you can implement the UnitTestManager interface and be given an opportunity to initialize your system from a configuration file.

See Also:   UnitTestManager
author:
   Michael Stover (mstover1 at apache.org)
version:
   $Revision: 584560 $




Method Summary
protected static  voidinitializeLogging(String[] args)
     An overridable method that initializes the logging for the unit test run, using the properties file passed in as the second argument.
protected static  voidinitializeManager(String[] args)
     An overridable method that that instantiates a UnitTestManager (if one was specified in the command-line arguments), and hands it the name of the properties file to use to configure the system.
public static  voidmain(String[] args)
     Starts a run through all unit tests found in the specified classpaths. The first argument should be a list of paths to search.
public static  TestSuitesuite()
    



Method Detail
initializeLogging
protected static void initializeLogging(String[] args)(Code)
An overridable method that initializes the logging for the unit test run, using the properties file passed in as the second argument.
Parameters:
  args -



initializeManager
protected static void initializeManager(String[] args)(Code)
An overridable method that that instantiates a UnitTestManager (if one was specified in the command-line arguments), and hands it the name of the properties file to use to configure the system.
Parameters:
  args -



main
public static void main(String[] args)(Code)
Starts a run through all unit tests found in the specified classpaths. The first argument should be a list of paths to search. The second argument is optional and specifies a properties file used to initialize logging. The third argument is also optional, and specifies a class that implements the UnitTestManager interface. This provides a means of initializing your application with a configuration file prior to the start of any unit tests.
Parameters:
  args - the command line arguments



suite
public static TestSuite suite()(Code)



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.