com.atlassian.bamboo.build.test
Class JunitTestReportCollector

java.lang.Object
  extended by com.atlassian.bamboo.build.test.JunitTestReportCollector
All Implemented Interfaces:
TestReportCollector

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

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


Constructor Summary
JunitTestReportCollector()
           
 
Method Summary
 TestCollectionResult collect(java.io.File file)
          Collect all the results from all the xml test files.
 java.util.Set<java.lang.String> getSupportedFileExtensions()
          The valid file extension(s) of the test report file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JunitTestReportCollector

public JunitTestReportCollector()
Method Detail

collect

@NotNull
public TestCollectionResult collect(@NotNull
                                            java.io.File file)
                             throws java.lang.Exception
Collect all the results from all the xml test files.

Specified by:
collect in interface TestReportCollector
Returns:
testReportCollectorResult
Throws:
java.lang.Exception - if a problem with processing the given file has occurred

getSupportedFileExtensions

@NotNull
public java.util.Set<java.lang.String> getSupportedFileExtensions()
Description copied from interface: TestReportCollector
The valid file extension(s) of the test report file. Return empty Set if all extensions are supported.

Specified by:
getSupportedFileExtensions in interface TestReportCollector
Returns:
supportedFileExtensions


Copyright © 2012 Atlassian. All Rights Reserved.