com.atlassian.bamboo.builder
Class AntJunitTestReportCollector

java.lang.Object
  extended by com.atlassian.bamboo.builder.AntJunitTestReportCollector
All Implemented Interfaces:
TestReportCollector

@ThreadSafe
public class AntJunitTestReportCollector
extends java.lang.Object
implements TestReportCollector

This class obtains the test results from a directory containing Junit test result file.


Constructor Summary
AntJunitTestReportCollector(java.io.File testResultsFile, AntXmlTestResultsParser parser)
           
 
Method Summary
 void collect()
          Collect all the results from all the xml test files.
 java.util.List<TestResults> getFailedTestResults()
          Get all the unit TestResults that have failed.
 java.util.List<TestResults> getSuccessfulTestResults()
          Get all the unit TestResults that have passed without error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntJunitTestReportCollector

public AntJunitTestReportCollector(java.io.File testResultsFile,
                                   AntXmlTestResultsParser parser)
Method Detail

collect

public void collect()
             throws java.lang.Exception
Collect all the results from all the xml test files.

Specified by:
collect in interface TestReportCollector
Throws:
java.lang.Exception

getSuccessfulTestResults

public java.util.List<TestResults> getSuccessfulTestResults()
Get all the unit TestResults that have passed without error.

Specified by:
getSuccessfulTestResults in interface TestReportCollector
Returns:
The collection of successful TestResults

getFailedTestResults

public java.util.List<TestResults> getFailedTestResults()
Get all the unit TestResults that have failed.

Specified by:
getFailedTestResults in interface TestReportCollector
Returns:
The collection of failed TestResults


Copyright © 2010 Atlassian. All Rights Reserved.