Java Doc for EMBTestRunner.java in  » J2EE » JOnAS-4.8.6 » com » ibm » emb » junit » 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 » J2EE » JOnAS 4.8.6 » com.ibm.emb.junit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.ibm.emb.junit.EMBTestRunner

EMBTestRunner
public class EMBTestRunner extends TestRunner (Code)
An extension of junit.textui.TestRunner which overrides several functions to provide logging of failed tests to configurable files.


Field Summary
protected  EMBTestConfigurationembTestConfig
    
 intfColumn
    
 ResultPrinterrprinter
    

Constructor Summary
public  EMBTestRunner()
     Constructs a TestRunner.

Method Summary
public synchronized  voidaddError(Test test, Throwable t)
    
public synchronized  voidaddFailure(Test test, AssertionFailedError t)
    
protected  TestResultcreateTestResult()
     Creates the TestResult to be used for the test run.
public  TestResultdoRun(Test suite, boolean wait)
    
public  voidendTest(Test test)
    
public  voidfileErrors(TestResult result)
    
public  voidfileFailures(TestResult result)
    
public  voidfileHeader(TestResult result)
    
protected  BufferedWriterfileWriter()
    
public synchronized  voidprint(TestResult result)
    
public static  TestResultrun(Test suite)
     overwritten run method which also logs errors to a file Runs a single test and collects its results.
public static  voidrun(Class testClass)
     Runs a suite extracted from a TestCase subclass.
public static  voidrunAndWait(Test suite)
     overwritten runAndWait method Runs a single test and waits until the user types RETURN.
public synchronized  voidstartTest(Test test)
    

Field Detail
embTestConfig
protected EMBTestConfiguration embTestConfig(Code)



fColumn
int fColumn(Code)



rprinter
ResultPrinter rprinter(Code)




Constructor Detail
EMBTestRunner
public EMBTestRunner()(Code)
Constructs a TestRunner.




Method Detail
addError
public synchronized void addError(Test test, Throwable t)(Code)
overwritten method



addFailure
public synchronized void addFailure(Test test, AssertionFailedError t)(Code)
overwritten method



createTestResult
protected TestResult createTestResult()(Code)
Creates the TestResult to be used for the test run.



doRun
public TestResult doRun(Test suite, boolean wait)(Code)
overwritten doRun method which also logs failed tests to a file



endTest
public void endTest(Test test)(Code)



fileErrors
public void fileErrors(TestResult result) throws java.io.IOException(Code)
overwritten method which logs errors to a file and prints the errors to the standard output



fileFailures
public void fileFailures(TestResult result) throws java.io.IOException(Code)
overwritten method which logs failures to a file and prints failures to the standard output



fileHeader
public void fileHeader(TestResult result) throws java.io.IOException(Code)
overwritten method which prints the header to a file and prints the header of the report



fileWriter
protected BufferedWriter fileWriter()(Code)
fileWriter used to log the results obtained from the EMBTestConfiguration singleton



print
public synchronized void print(TestResult result)(Code)
overwritten method which logs summary to a file and prints summary to the standard output



run
public static TestResult run(Test suite)(Code)
overwritten run method which also logs errors to a file Runs a single test and collects its results. This method can be used to start a test run from your program.
 public static void main(String[] args) {
 com.ibm.emb.meb.junit.EMBTestRunner.run(suite());
 }
 



run
public static void run(Class testClass)(Code)
Runs a suite extracted from a TestCase subclass.



runAndWait
public static void runAndWait(Test suite)(Code)
overwritten runAndWait method Runs a single test and waits until the user types RETURN.



startTest
public synchronized void startTest(Test test)(Code)



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