Class TestResultsSummaryImpl
- java.lang.Object
-
- com.atlassian.bamboo.resultsummary.tests.TestResultsSummaryImpl
-
- All Implemented Interfaces:
MutableTestResultsSummary
,TestResultsSummary
public class TestResultsSummaryImpl extends Object implements MutableTestResultsSummary
-
-
Constructor Summary
Constructors Constructor Description TestResultsSummaryImpl()
TestResultsSummaryImpl(int successfulTestCaseCount, int failedTestCaseCount, int totalTestCaseCount, int brokenTestCaseCount, int existingFailedTestCount, int fixedTestCaseCount, int quarantinedTestCaseCount, int skippedTestCaseCount)
-
Method Summary
-
-
-
Constructor Detail
-
TestResultsSummaryImpl
public TestResultsSummaryImpl()
-
TestResultsSummaryImpl
public TestResultsSummaryImpl(int successfulTestCaseCount, int failedTestCaseCount, int totalTestCaseCount, int brokenTestCaseCount, int existingFailedTestCount, int fixedTestCaseCount, int quarantinedTestCaseCount, int skippedTestCaseCount)
-
-
Method Detail
-
getTestSummaryDescription
@NotNull public @NotNull String getTestSummaryDescription()
- Specified by:
getTestSummaryDescription
in interfaceTestResultsSummary
-
hasFailedTestResults
public boolean hasFailedTestResults()
- Specified by:
hasFailedTestResults
in interfaceTestResultsSummary
-
hasQuarantinedTestResults
public boolean hasQuarantinedTestResults()
- Specified by:
hasQuarantinedTestResults
in interfaceTestResultsSummary
-
hasIgnoredTestResults
public boolean hasIgnoredTestResults()
- Specified by:
hasIgnoredTestResults
in interfaceTestResultsSummary
- Returns:
- true if there are any quarantined or skipped tests
-
hasSuccessfulTestResults
public boolean hasSuccessfulTestResults()
- Specified by:
hasSuccessfulTestResults
in interfaceTestResultsSummary
-
incrementSuccessCount
public void incrementSuccessCount()
- Specified by:
incrementSuccessCount
in interfaceMutableTestResultsSummary
-
incrementFailedCount
public void incrementFailedCount()
- Specified by:
incrementFailedCount
in interfaceMutableTestResultsSummary
-
incrementSkippedCount
public void incrementSkippedCount()
- Specified by:
incrementSkippedCount
in interfaceMutableTestResultsSummary
-
incrementTotalCount
public void incrementTotalCount()
- Specified by:
incrementTotalCount
in interfaceMutableTestResultsSummary
-
incrementNewFailureCount
public void incrementNewFailureCount()
- Specified by:
incrementNewFailureCount
in interfaceMutableTestResultsSummary
-
incrementExistingFailureCount
public void incrementExistingFailureCount()
- Specified by:
incrementExistingFailureCount
in interfaceMutableTestResultsSummary
-
incrementFixedCount
public void incrementFixedCount()
- Specified by:
incrementFixedCount
in interfaceMutableTestResultsSummary
-
incrementQuarantinedCount
public void incrementQuarantinedCount()
- Specified by:
incrementQuarantinedCount
in interfaceMutableTestResultsSummary
-
addToTotalDuration
public void addToTotalDuration(long addition)
- Specified by:
addToTotalDuration
in interfaceMutableTestResultsSummary
-
getSuccessfulTestCaseCount
public int getSuccessfulTestCaseCount()
- Specified by:
getSuccessfulTestCaseCount
in interfaceTestResultsSummary
-
setSuccessfulTestCaseCount
public void setSuccessfulTestCaseCount(int successfulTestCaseCount)
- Specified by:
setSuccessfulTestCaseCount
in interfaceMutableTestResultsSummary
-
getFailedTestCaseCount
public int getFailedTestCaseCount()
- Specified by:
getFailedTestCaseCount
in interfaceTestResultsSummary
-
setFailedTestCaseCount
public void setFailedTestCaseCount(int failedTestCaseCount)
- Specified by:
setFailedTestCaseCount
in interfaceMutableTestResultsSummary
-
getTotalTestCaseCount
public int getTotalTestCaseCount()
- Specified by:
getTotalTestCaseCount
in interfaceTestResultsSummary
-
setTotalTestCaseCount
public void setTotalTestCaseCount(int totalTestCaseCount)
- Specified by:
setTotalTestCaseCount
in interfaceMutableTestResultsSummary
-
getNewFailedTestCaseCount
public int getNewFailedTestCaseCount()
- Specified by:
getNewFailedTestCaseCount
in interfaceTestResultsSummary
-
setNewFailedTestCaseCount
public void setNewFailedTestCaseCount(int brokenTestCaseCount)
- Specified by:
setNewFailedTestCaseCount
in interfaceMutableTestResultsSummary
-
getExistingFailedTestCount
public int getExistingFailedTestCount()
- Specified by:
getExistingFailedTestCount
in interfaceTestResultsSummary
-
setExistingFailedTestCount
public void setExistingFailedTestCount(int existingFailedTestCount)
- Specified by:
setExistingFailedTestCount
in interfaceMutableTestResultsSummary
-
getFixedTestCaseCount
public int getFixedTestCaseCount()
- Specified by:
getFixedTestCaseCount
in interfaceTestResultsSummary
-
setFixedTestCaseCount
public void setFixedTestCaseCount(int fixedTestCaseCount)
- Specified by:
setFixedTestCaseCount
in interfaceMutableTestResultsSummary
-
getQuarantinedTestCaseCount
public int getQuarantinedTestCaseCount()
- Specified by:
getQuarantinedTestCaseCount
in interfaceTestResultsSummary
-
getSkippedTestCaseCount
public int getSkippedTestCaseCount()
Description copied from interface:TestResultsSummary
Returns number of test cases classified as skipped by the parser. Quarantined skipped tests are not counted.- Specified by:
getSkippedTestCaseCount
in interfaceTestResultsSummary
- Returns:
- number of test cases classified as skipped
-
getIgnoredTestCaseCount
public int getIgnoredTestCaseCount()
We use the fact that quarantined-skipped tests are counted only once as quarantined- Specified by:
getIgnoredTestCaseCount
in interfaceTestResultsSummary
- Returns:
- total number of ignored tests
-
hasSkippedTestResults
public boolean hasSkippedTestResults()
- Specified by:
hasSkippedTestResults
in interfaceTestResultsSummary
- Returns:
- true if there were any skipped test results
-
setSkippedTestCaseCount
public void setSkippedTestCaseCount(int skippedTestCaseCount)
- Specified by:
setSkippedTestCaseCount
in interfaceMutableTestResultsSummary
-
setQuarantinedTestCaseCount
public void setQuarantinedTestCaseCount(int quarantinedTestCaseCount)
- Specified by:
setQuarantinedTestCaseCount
in interfaceMutableTestResultsSummary
-
getTotalTestDuration
public long getTotalTestDuration()
- Specified by:
getTotalTestDuration
in interfaceTestResultsSummary
- Returns:
- An aggregate of all test durations that ran in this build, in milliseconds
-
setTotalTestDuration
public void setTotalTestDuration(long totalTestDuration)
- Specified by:
setTotalTestDuration
in interfaceMutableTestResultsSummary
-
addCountsFrom
public void addCountsFrom(@NotNull @NotNull TestResultsSummary testResultsSummary)
Description copied from interface:MutableTestResultsSummary
Merges the givenTestResultsSummary
with the currentTestResultsSummary
- Specified by:
addCountsFrom
in interfaceMutableTestResultsSummary
- Parameters:
testResultsSummary
- to merge from
-
-