com.atlassian.bamboo.resultsummary.tests
Class TestCaseResultStatisticsProviderImpl

java.lang.Object
  extended by com.atlassian.bamboo.resultsummary.tests.TestCaseResultStatisticsProviderImpl
All Implemented Interfaces:
ResultStatisticsProvider, TestCaseResultStatisticsProvider

public class TestCaseResultStatisticsProviderImpl
extends java.lang.Object
implements TestCaseResultStatisticsProvider


Constructor Summary
TestCaseResultStatisticsProviderImpl(TestCaseResult testCaseResult, BuildResultsSummary buildResultsSummary)
           
 
Method Summary
 java.util.Date getBuildDate()
          When the build was executed
 int getBuildNumber()
          Get build number
 BuildResultsSummary getBuildResultsSummary()
           
 BuildState getBuildState()
          Hack to allow us to use existing chart functionality.
 java.lang.String getClassName()
           
 long getDuration()
          Get duration of the build in milliseconds.
 double getDurationInSeconds()
          Build duration in seconds.
 java.lang.String getName()
           
 long getProcessingDuration()
          Get processing duration of the build in milliseconds.
 java.util.Date getStatDate()
          When the build was executed.
 TestCaseResult getTestCaseResult()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCaseResultStatisticsProviderImpl

public TestCaseResultStatisticsProviderImpl(TestCaseResult testCaseResult,
                                            BuildResultsSummary buildResultsSummary)
Method Detail

getBuildState

public BuildState getBuildState()
Hack to allow us to use existing chart functionality. This is actually the test state not the Build state

Specified by:
getBuildState in interface ResultStatisticsProvider
Returns:
The TestState for the test case converted into a BuildState representation

getBuildNumber

public int getBuildNumber()
Description copied from interface: ResultStatisticsProvider
Get build number

Specified by:
getBuildNumber in interface ResultStatisticsProvider
Returns:
build number of the described build

getBuildDate

public java.util.Date getBuildDate()
Description copied from interface: ResultStatisticsProvider
When the build was executed

Specified by:
getBuildDate in interface ResultStatisticsProvider
Returns:
date of build execution or null if build was not executed yet

getStatDate

public java.util.Date getStatDate()
Description copied from interface: ResultStatisticsProvider
When the build was executed. If build was not completed, queued time is provided instead.

Specified by:
getStatDate in interface ResultStatisticsProvider
Returns:
date of build execution or queued time if build was not executed or state is unknown

getDurationInSeconds

public double getDurationInSeconds()
Description copied from interface: ResultStatisticsProvider
Build duration in seconds.

Specified by:
getDurationInSeconds in interface ResultStatisticsProvider
Returns:
build duration

getDuration

public long getDuration()
Description copied from interface: ResultStatisticsProvider
Get duration of the build in milliseconds.

Specified by:
getDuration in interface ResultStatisticsProvider
Returns:
duration of the build in milliseconds

getProcessingDuration

public long getProcessingDuration()
Description copied from interface: ResultStatisticsProvider
Get processing duration of the build in milliseconds.

Specified by:
getProcessingDuration in interface ResultStatisticsProvider
Returns:
processing duration of the build in milliseconds

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface TestCaseResultStatisticsProvider
Returns:
the class name of the test case

getName

public java.lang.String getName()
Specified by:
getName in interface TestCaseResultStatisticsProvider
Returns:
the actual method name (un-prettified)of the test case

getTestCaseResult

public TestCaseResult getTestCaseResult()
Specified by:
getTestCaseResult in interface TestCaseResultStatisticsProvider
Returns:
the TestCaseResult inside this wrapper

getBuildResultsSummary

public BuildResultsSummary getBuildResultsSummary()
Specified by:
getBuildResultsSummary in interface TestCaseResultStatisticsProvider
Returns:
the BuildResultsSummary inside this wrapper.


Copyright © 2012 Atlassian. All Rights Reserved.