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
Constructors Constructor Description TestCaseResultStatisticsProviderImpl(TestCaseResult testCaseResult, BuildResultsSummary buildResultsSummary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetBuildDate()When the build was executedintgetBuildNumber()Get build numberBuildResultsSummarygetBuildResultsSummary()BuildStategetBuildState()Hack to allow us to use existing chart functionality.StringgetClassName()longgetDuration()Get duration of the build in milliseconds.StringgetName()longgetProcessingDuration()Get processing duration of the build in milliseconds.@NotNull DategetStatDate()When the build was executed.TestCaseResultgetTestCaseResult()
-
-
-
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:
getBuildStatein interfaceResultStatisticsProvider- Returns:
- The TestState for the test case converted into a BuildState representation
-
getBuildNumber
public int getBuildNumber()
Description copied from interface:ResultStatisticsProviderGet build number- Specified by:
getBuildNumberin interfaceResultStatisticsProvider- Returns:
- build number of the described build
-
getBuildDate
public Date getBuildDate()
Description copied from interface:ResultStatisticsProviderWhen the build was executed- Specified by:
getBuildDatein interfaceResultStatisticsProvider- Returns:
- date of build execution or null if build was not executed yet
-
getStatDate
@NotNull public @NotNull Date getStatDate()
Description copied from interface:ResultStatisticsProviderWhen the build was executed. If build was not completed, queued time is provided instead.- Specified by:
getStatDatein 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:ResultStatisticsProviderGet duration of the build in milliseconds.- Specified by:
getDurationin interfaceResultStatisticsProvider- Returns:
- duration of the build in milliseconds
-
getProcessingDuration
public long getProcessingDuration()
Description copied from interface:ResultStatisticsProviderGet processing duration of the build in milliseconds.- Specified by:
getProcessingDurationin interfaceResultStatisticsProvider- Returns:
- processing duration of the build in milliseconds
-
getClassName
public String getClassName()
- Specified by:
getClassNamein interfaceTestCaseResultStatisticsProvider- Returns:
- the class name of the test case
-
getName
public String getName()
- Specified by:
getNamein interfaceTestCaseResultStatisticsProvider- Returns:
- the actual method name (un-prettified)of the test case
-
getTestCaseResult
public TestCaseResult getTestCaseResult()
- Specified by:
getTestCaseResultin interfaceTestCaseResultStatisticsProvider- Returns:
- the TestCaseResult inside this wrapper
-
getBuildResultsSummary
public BuildResultsSummary getBuildResultsSummary()
- Specified by:
getBuildResultsSummaryin interfaceTestCaseResultStatisticsProvider- Returns:
- the BuildResultsSummary inside this wrapper.
-
-