com.atlassian.bamboo.results.tests
Class TestCaseResultWrapper

java.lang.Object
  extended by com.atlassian.bamboo.results.tests.TestCaseResultWrapper
All Implemented Interfaces:
TestCaseResult, ResultStatisticsProvider

public class TestCaseResultWrapper
extends java.lang.Object
implements TestCaseResult

A wrapper class around the Test Results object.

Provides more ready access to test case focused query.


Constructor Summary
TestCaseResultWrapper(TestResults testResults, BuildResults buildResults, TestResultManager testResultManager)
          Creates a this decorator proxy object - which hides a real TestResults object.
 
Method Summary
 void addError(TestResultError error)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getActualMethodName()
           
 java.util.Date getBuildDate()
           
 int getBuildNumber()
           
 BuildResults getBuildResults()
           
 BuildState getBuildState()
           
 java.lang.String getClassName()
           
 DeltaState getDeltaState()
           
 java.lang.String getDuration()
           
 double getDurationInSeconds()
           
 java.util.List getErrors()
           
 java.lang.String getMethodName()
           
 java.lang.String getPrettyDuration()
           
 java.lang.String getShortClassName()
           
 java.lang.String getSystemOut()
           
 TestResults getTestResults()
           
 java.lang.Long getTimeToFix()
           
 boolean hasErrors()
           
 boolean isExistingFailure()
           
 boolean isFailed()
           
 boolean isSuccessful()
           
 void setState(BuildState state)
           
 void setSystemOut(java.lang.String systemOut)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCaseResultWrapper

public TestCaseResultWrapper(TestResults testResults,
                             BuildResults buildResults,
                             TestResultManager testResultManager)
Creates a this decorator proxy object - which hides a real TestResults object.

Parameters:
testResults -
buildResults -
Method Detail

getTestResults

public TestResults getTestResults()

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 java.lang.Long getTimeToFix()
Specified by:
getTimeToFix in interface TestCaseResult

getBuildResults

public BuildResults getBuildResults()

getBuildDate

public java.util.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

getActualMethodName

public java.lang.String getActualMethodName()
Specified by:
getActualMethodName in interface TestCaseResult

getMethodName

public java.lang.String getMethodName()
Specified by:
getMethodName in interface TestCaseResult

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface TestCaseResult

getShortClassName

public java.lang.String getShortClassName()
Specified by:
getShortClassName in interface TestCaseResult

getDuration

public java.lang.String getDuration()

addError

public void addError(TestResultError error)

getErrors

public java.util.List getErrors()
Specified by:
getErrors in interface TestCaseResult

setSystemOut

public void setSystemOut(java.lang.String systemOut)

getSystemOut

public java.lang.String getSystemOut()

hasErrors

public boolean hasErrors()

getDurationInSeconds

public double getDurationInSeconds()
Specified by:
getDurationInSeconds in interface ResultStatisticsProvider

getPrettyDuration

public java.lang.String getPrettyDuration()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.