com.atlassian.bamboo.results.tests
Class TestCaseResultWrapper
java.lang.Object
com.atlassian.bamboo.results.tests.TestCaseResultWrapper
- All Implemented Interfaces:
- TestCaseResult, ResultStatisticsProvider
public class TestCaseResultWrapper
- extends Object
- implements TestCaseResult
A wrapper class around the Test Results object.
Provides more ready access to test case focused query.
TestCaseResultWrapper
public TestCaseResultWrapper(TestResults testResults,
BuildResults buildResults,
TestResultManager testResultManager)
- Creates a this decorator proxy object - which hides a real
TestResults
object.
- Parameters:
testResults
- buildResults
-
getTestResults
public TestResults getTestResults()
getBuildId
public long getBuildId()
- Specified by:
getBuildId
in interface TestCaseResult
getBuildState
public BuildState getBuildState()
- Specified by:
getBuildState
in interface ResultStatisticsProvider
setState
public void setState(BuildState state)
getBuildNumber
public int getBuildNumber()
- Specified by:
getBuildNumber
in interface ResultStatisticsProvider
isExistingFailure
public boolean isExistingFailure()
getDeltaState
public DeltaState getDeltaState()
- Specified by:
getDeltaState
in interface TestCaseResult
getTimeToFix
public Long getTimeToFix()
- Specified by:
getTimeToFix
in interface TestCaseResult
getBuildResults
public BuildResults getBuildResults()
getBuildDate
public Date getBuildDate()
- Specified by:
getBuildDate
in interface ResultStatisticsProvider
isFailed
public boolean isFailed()
- Specified by:
isFailed
in interface TestCaseResult
isSuccessful
public boolean isSuccessful()
- Specified by:
isSuccessful
in interface TestCaseResult
getKey
public String getKey()
- Specified by:
getKey
in interface TestCaseResult
getActualMethodName
public String getActualMethodName()
- Specified by:
getActualMethodName
in interface TestCaseResult
getMethodName
public String getMethodName()
- Specified by:
getMethodName
in interface TestCaseResult
getClassName
public String getClassName()
- Specified by:
getClassName
in interface TestCaseResult
getShortClassName
public String getShortClassName()
- Specified by:
getShortClassName
in interface TestCaseResult
getDuration
public String getDuration()
addError
public void addError(TestResultError error)
getErrors
public List getErrors()
- Specified by:
getErrors
in interface TestCaseResult
setSystemOut
public void setSystemOut(String systemOut)
getSystemOut
public String getSystemOut()
hasErrors
public boolean hasErrors()
getDurationInSeconds
public double getDurationInSeconds()
- Specified by:
getDurationInSeconds
in interface ResultStatisticsProvider
getPrettyDuration
public String getPrettyDuration()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
Copyright © 2006 Atlassian Software Systems. All Rights Reserved.