com.atlassian.bamboo.results.tests
Class TestClassResultWrapper

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

public class TestClassResultWrapper
extends java.lang.Object
implements ResultStatisticsProvider

A wrapper object around the TestClassResult underlying object

This will hold more information about a particular test class result

including knowing state, build numberes, etc...


Field Summary
static java.lang.String FAILED
           
static java.lang.String SUCCESS
           
 
Constructor Summary
TestClassResultWrapper(TestClassResult testClassResult, BuildResults buildResults, TestResultManager testResultManager)
           
 
Method Summary
 void addTestResult(TestResults testResult)
           
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object o)
           
 java.util.Date getBuildDate()
           
 int getBuildNumber()
           
 BuildResults getBuildResults()
           
 BuildState getBuildState()
           
 double getDurationInSeconds()
           
 java.util.List getFailedTests()
           
 int getFailedTestsCount()
           
 java.lang.String getName()
           
 java.lang.String getPrettyTotalDuration()
           
 java.lang.String getShortName()
           
 java.util.List getSuccessfulTests()
           
 int getSuccessfulTestsCount()
           
 TestClassResult getTestClassResult()
           
 TestResultManager getTestResultManager()
           
 java.util.List getTestResults()
           
 double getTotalDuration()
           
 boolean hasExistingFailingTests()
           
 void setBuildResults(BuildResults buildResults)
           
 void setTestClassResult(TestClassResult testClassResult)
           
 void setTestResultManager(TestResultManager testResultManager)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS

public static final java.lang.String SUCCESS
See Also:
Constant Field Values

FAILED

public static final java.lang.String FAILED
See Also:
Constant Field Values
Constructor Detail

TestClassResultWrapper

public TestClassResultWrapper(TestClassResult testClassResult,
                              BuildResults buildResults,
                              TestResultManager testResultManager)
Method Detail

getTestClassResult

public TestClassResult getTestClassResult()

setTestClassResult

public void setTestClassResult(TestClassResult testClassResult)

getBuildResults

public BuildResults getBuildResults()

setBuildResults

public void setBuildResults(BuildResults buildResults)

getTestResultManager

public TestResultManager getTestResultManager()

setTestResultManager

public void setTestResultManager(TestResultManager testResultManager)

getSuccessfulTestsCount

public int getSuccessfulTestsCount()

getFailedTestsCount

public int getFailedTestsCount()

getSuccessfulTests

public java.util.List getSuccessfulTests()

getFailedTests

public java.util.List getFailedTests()

getBuildState

public BuildState getBuildState()
Specified by:
getBuildState in interface ResultStatisticsProvider

hasExistingFailingTests

public boolean hasExistingFailingTests()

getBuildNumber

public int getBuildNumber()
Specified by:
getBuildNumber in interface ResultStatisticsProvider

getBuildDate

public java.util.Date getBuildDate()
Specified by:
getBuildDate in interface ResultStatisticsProvider

getDurationInSeconds

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

getName

public java.lang.String getName()

getShortName

public java.lang.String getShortName()

addTestResult

public void addTestResult(TestResults testResult)

getTestResults

public java.util.List getTestResults()

getTotalDuration

public double getTotalDuration()

getPrettyTotalDuration

public java.lang.String getPrettyTotalDuration()

equals

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

compareTo

public int compareTo(java.lang.Object obj)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.