com.atlassian.bamboo.build
Interface TestResultManager

All Known Implementing Classes:
DefaultTestResultManager

public interface TestResultManager


Method Summary
 BuildResults getBuildFailingSince(BuildResults buildResults, TestResults testResults)
          Given a build results with test result, finds the build result for which this failing test has been failing since.
 BuildResults getBuildSuccessfulSince(TestCase testCase)
           
 TestCaseResultWrapper getLastTestCaseResult(TestCase testCase)
           
 TestCaseResultWrapper getTestCaseResult(BuildResults buildResults, java.lang.String key)
          Finds a TestCaseResultWrapper given a test case key and a BuildResultsImpl
 TestClassResultWrapper getTestClassResult(BuildResults buildResults, java.lang.String key)
          Finds a TestClassResultWrapper given a test class key and a BuildResultsImpl
 boolean isTestFailedForBuild(BuildResults buildResults, TestResults testResults)
          Checks to see if a given TestResults is failing in a given BuildResultsImpl
 java.util.List wrapTestCaseResults(java.util.List testResults, BuildResults buildResults)
          Wraps up a List of TestResults object into a List of TestCaseResultWrapper objects.
 

Method Detail

getBuildFailingSince

BuildResults getBuildFailingSince(BuildResults buildResults,
                                  TestResults testResults)
Given a build results with test result, finds the build result for which this failing test has been failing since.

Parameters:
buildResults - - build results to count the failing unitl
testResults - - the test result representing the test case
Returns:
BuildResultsImpl for which this test first failed.

isTestFailedForBuild

boolean isTestFailedForBuild(BuildResults buildResults,
                             TestResults testResults)
Checks to see if a given TestResults is failing in a given BuildResultsImpl

Parameters:
buildResults -
testResults -
Returns:
boolean failed = true, not failed = false;

getTestCaseResult

TestCaseResultWrapper getTestCaseResult(BuildResults buildResults,
                                        java.lang.String key)
Finds a TestCaseResultWrapper given a test case key and a BuildResultsImpl

Parameters:
buildResults -
key -
Returns:
a TestCaseResultWrapper which wraps around the underlying TestResults

getTestClassResult

TestClassResultWrapper getTestClassResult(BuildResults buildResults,
                                          java.lang.String key)
Finds a TestClassResultWrapper given a test class key and a BuildResultsImpl

Parameters:
buildResults -
key -
Returns:
a TestClassResultWrapper which wraps around the underlying TestClassResult\

wrapTestCaseResults

java.util.List wrapTestCaseResults(java.util.List testResults,
                                   BuildResults buildResults)
Wraps up a List of TestResults object into a List of TestCaseResultWrapper objects.

Parameters:
testResults - List of TestResults
buildResults -
Returns:
the List of wrapped TestCaseResultWrapper

getBuildSuccessfulSince

BuildResults getBuildSuccessfulSince(TestCase testCase)

getLastTestCaseResult

TestCaseResultWrapper getLastTestCaseResult(TestCase testCase)


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.