Class TestCaseResultStatisticsProviderImpl
java.lang.Object
com.atlassian.bamboo.resultsummary.tests.TestCaseResultStatisticsProviderImpl
- All Implemented Interfaces:
ResultStatisticsProvider
,TestCaseResultStatisticsProvider
public class TestCaseResultStatisticsProviderImpl
extends Object
implements TestCaseResultStatisticsProvider
-
Constructor Summary
ConstructorDescriptionTestCaseResultStatisticsProviderImpl
(TestCaseResult testCaseResult, BuildResultsSummary buildResultsSummary) -
Method Summary
-
Constructor Details
-
TestCaseResultStatisticsProviderImpl
public TestCaseResultStatisticsProviderImpl(TestCaseResult testCaseResult, BuildResultsSummary buildResultsSummary)
-
-
Method Details
-
getBuildState
Hack to allow us to use existing chart functionality. This is actually the test state not the Build state- Specified by:
getBuildState
in interfaceResultStatisticsProvider
- 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 interfaceResultStatisticsProvider
- Returns:
- build number of the described build
-
getBuildDate
Description copied from interface:ResultStatisticsProvider
When the build was executed- Specified by:
getBuildDate
in interfaceResultStatisticsProvider
- Returns:
- date of build execution or null if build was not executed yet
-
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 interfaceResultStatisticsProvider
- Returns:
- date of build execution or queued time if build was not executed or state is unknown
-
getDuration
public long getDuration()Description copied from interface:ResultStatisticsProvider
Get duration of the build in milliseconds.- Specified by:
getDuration
in interfaceResultStatisticsProvider
- 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 interfaceResultStatisticsProvider
- Returns:
- processing duration of the build in milliseconds
-
getClassName
- Specified by:
getClassName
in interfaceTestCaseResultStatisticsProvider
- Returns:
- the class name of the test case
-
getName
- Specified by:
getName
in interfaceTestCaseResultStatisticsProvider
- Returns:
- the actual method name (un-prettified)of the test case
-
getTestCaseResult
- Specified by:
getTestCaseResult
in interfaceTestCaseResultStatisticsProvider
- Returns:
- the TestCaseResult inside this wrapper
-
getBuildResultsSummary
- Specified by:
getBuildResultsSummary
in interfaceTestCaseResultStatisticsProvider
- Returns:
- the BuildResultsSummary inside this wrapper.
-