com.atlassian.bamboo.build
Interface TestResultManager
- All Known Implementing Classes:
- DefaultTestResultManager
public interface TestResultManager
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 unitltestResults - - 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,
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,
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
List wrapTestCaseResults(List testResults,
BuildResults buildResults)
- Wraps up a
List of TestResults object into a List of TestCaseResultWrapper objects.
- Parameters:
testResults - buildResults -
- Returns:
- the
List of wrapped TestCaseResultWrapper
getBuildFailingSince
BuildResults getBuildFailingSince(TestCase testCase)
getBuildSuccessfulSince
BuildResults getBuildSuccessfulSince(TestCase testCase)
getLastTestCaseResult
TestCaseResultWrapper getLastTestCaseResult(TestCase testCase)
Copyright © 2006 Atlassian Software Systems. All Rights Reserved.