|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.DefaultTestResultManager
public class DefaultTestResultManager
Constructor Summary | |
---|---|
DefaultTestResultManager()
|
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 testCaseClassName,
java.lang.String testCaseName)
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 |
void |
setBuildManager(BuildManager buildManager)
|
java.util.List |
wrapTestCaseResults(java.util.Collection<TestResults> testResults,
BuildResults buildResults)
Wraps up a List of TestResults object into a List of TestCaseResultWrapper objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTestResultManager()
Method Detail |
---|
public BuildResults getBuildFailingSince(BuildResults buildResults, TestResults testResults)
TestResultManager
getBuildFailingSince
in interface TestResultManager
buildResults
- - build results to count the failing unitltestResults
- - the test result representing the test case
BuildResultsImpl
for which this test first failed.public boolean isTestFailedForBuild(BuildResults buildResults, TestResults testResults)
TestResultManager
TestResults
is failing in a given BuildResultsImpl
isTestFailedForBuild
in interface TestResultManager
boolean
failed = true, not failed = false;public TestCaseResultWrapper getTestCaseResult(BuildResults buildResults, java.lang.String testCaseClassName, java.lang.String testCaseName)
TestResultManager
TestCaseResultWrapper
given a test case key and a BuildResultsImpl
getTestCaseResult
in interface TestResultManager
TestCaseResultWrapper
which wraps around the underlying TestResults
public java.util.List wrapTestCaseResults(java.util.Collection<TestResults> testResults, BuildResults buildResults)
TestResultManager
List
of TestResults
object into a List
of TestCaseResultWrapper
objects.
wrapTestCaseResults
in interface TestResultManager
testResults
- List
of TestResults
List
of wrapped TestCaseResultWrapper
public BuildResults getBuildSuccessfulSince(TestCase testCase)
getBuildSuccessfulSince
in interface TestResultManager
public TestCaseResultWrapper getLastTestCaseResult(TestCase testCase)
getLastTestCaseResult
in interface TestResultManager
public TestClassResultWrapper getTestClassResult(BuildResults buildResults, java.lang.String key)
TestResultManager
TestClassResultWrapper
given a test class key and a BuildResultsImpl
getTestClassResult
in interface TestResultManager
buildResults
- key
-
public void setBuildManager(BuildManager buildManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |