com.atlassian.bamboo.results.tests
Class TestResultsSummaryImpl

java.lang.Object
  extended by com.atlassian.bamboo.results.tests.TestResultsSummaryImpl
All Implemented Interfaces:
TestResultsSummary

public class TestResultsSummaryImpl
extends java.lang.Object
implements TestResultsSummary


Constructor Summary
TestResultsSummaryImpl(java.util.List successfulTestResults, java.util.List failedTestResults, BuildResults buildResults)
           
 
Method Summary
 java.util.Map getAllTests()
           
 java.util.Map getExistingFailedTests()
          Returns Map of TestClassResult of tests that were failing in the previous build
 long getExistingFailedTestsCaseCount()
           
 long getExistingFailedTestsSuiteCount()
           
 java.util.Map getFixedTests()
          Returns Map of TestClassResult of tests that have been fixed in this build.
 long getFixedTestsCaseCount()
           
 long getFixedTestsSuiteCount()
           
 java.util.Map getNewFailedTests()
          Returns Map of TestClassResult of tests that have failed, but were not failing in the last build.
 long getNewFailedTestsCaseCount()
           
 long getNewFailedTestsSuiteCount()
           
 java.util.Map getSuccessfulTests()
           
 java.util.List getUngroupedExistingFailedTests()
           
 java.util.List getUngroupedNewFailedTests()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResultsSummaryImpl

public TestResultsSummaryImpl(java.util.List successfulTestResults,
                              java.util.List failedTestResults,
                              BuildResults buildResults)
Method Detail

getNewFailedTests

public java.util.Map getNewFailedTests()
Description copied from interface: TestResultsSummary
Returns Map of TestClassResult of tests that have failed, but were not failing in the last build.

Specified by:
getNewFailedTests in interface TestResultsSummary
Returns:
Immutable Map, with String keys of the ClassName and TestClassResult as value. Empty Map if none exists.

getExistingFailedTests

public java.util.Map getExistingFailedTests()
Description copied from interface: TestResultsSummary
Returns Map of TestClassResult of tests that were failing in the previous build

Specified by:
getExistingFailedTests in interface TestResultsSummary
Returns:
Immutable Map, with String keys of the ClassName and TestClassResult as value. Empty Map if none exists.

getUngroupedExistingFailedTests

public java.util.List getUngroupedExistingFailedTests()
Specified by:
getUngroupedExistingFailedTests in interface TestResultsSummary

getUngroupedNewFailedTests

public java.util.List getUngroupedNewFailedTests()
Specified by:
getUngroupedNewFailedTests in interface TestResultsSummary

getFixedTests

public java.util.Map getFixedTests()
Description copied from interface: TestResultsSummary
Returns Map of TestClassResult of tests that have been fixed in this build.

Specified by:
getFixedTests in interface TestResultsSummary
Returns:
Immutable Map, with String keys of the ClassName and TestClassResult as value. Empty Map if none exists.

getSuccessfulTests

public java.util.Map getSuccessfulTests()
Specified by:
getSuccessfulTests in interface TestResultsSummary

getAllTests

public java.util.Map getAllTests()
Specified by:
getAllTests in interface TestResultsSummary

getNewFailedTestsSuiteCount

public long getNewFailedTestsSuiteCount()
Specified by:
getNewFailedTestsSuiteCount in interface TestResultsSummary

getExistingFailedTestsSuiteCount

public long getExistingFailedTestsSuiteCount()
Specified by:
getExistingFailedTestsSuiteCount in interface TestResultsSummary

getNewFailedTestsCaseCount

public long getNewFailedTestsCaseCount()
Specified by:
getNewFailedTestsCaseCount in interface TestResultsSummary

getExistingFailedTestsCaseCount

public long getExistingFailedTestsCaseCount()
Specified by:
getExistingFailedTestsCaseCount in interface TestResultsSummary

getFixedTestsSuiteCount

public long getFixedTestsSuiteCount()
Specified by:
getFixedTestsSuiteCount in interface TestResultsSummary

getFixedTestsCaseCount

public long getFixedTestsCaseCount()
Specified by:
getFixedTestsCaseCount in interface TestResultsSummary


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.