com.atlassian.bamboo.resultsummary.tests
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 |
TestResultsSummaryImpl()
|
TestResultsSummaryImpl(int successfulTestCaseCount,
int failedTestCaseCount,
int totalTestCaseCount,
int brokenTestCaseCount,
int existingFailedTestCount,
int fixedTestCaseCount,
int quarantinedTestCaseCount,
int skippedTestCaseCount)
|
TestResultsSummaryImpl
public TestResultsSummaryImpl()
TestResultsSummaryImpl
public TestResultsSummaryImpl(int successfulTestCaseCount,
int failedTestCaseCount,
int totalTestCaseCount,
int brokenTestCaseCount,
int existingFailedTestCount,
int fixedTestCaseCount,
int quarantinedTestCaseCount,
int skippedTestCaseCount)
getTestSummaryDescription
@NotNull
public String getTestSummaryDescription()
- Specified by:
getTestSummaryDescription
in interface TestResultsSummary
hasFailedTestResults
public boolean hasFailedTestResults()
- Specified by:
hasFailedTestResults
in interface TestResultsSummary
hasQuarantinedTestResults
public boolean hasQuarantinedTestResults()
- Specified by:
hasQuarantinedTestResults
in interface TestResultsSummary
hasIgnoredTestResults
public boolean hasIgnoredTestResults()
- Specified by:
hasIgnoredTestResults
in interface TestResultsSummary
- Returns:
- true if there are any quarantined or skipped tests
hasSuccessfulTestResults
public boolean hasSuccessfulTestResults()
- Specified by:
hasSuccessfulTestResults
in interface TestResultsSummary
incrementSuccessCount
public void incrementSuccessCount()
- Specified by:
incrementSuccessCount
in interface MutableTestResultsSummary
incrementFailedCount
public void incrementFailedCount()
- Specified by:
incrementFailedCount
in interface MutableTestResultsSummary
incrementSkippedCount
public void incrementSkippedCount()
- Specified by:
incrementSkippedCount
in interface MutableTestResultsSummary
incrementTotalCount
public void incrementTotalCount()
- Specified by:
incrementTotalCount
in interface MutableTestResultsSummary
incrementNewFailureCount
public void incrementNewFailureCount()
- Specified by:
incrementNewFailureCount
in interface MutableTestResultsSummary
incrementExistingFailureCount
public void incrementExistingFailureCount()
- Specified by:
incrementExistingFailureCount
in interface MutableTestResultsSummary
incrementFixedCount
public void incrementFixedCount()
- Specified by:
incrementFixedCount
in interface MutableTestResultsSummary
incrementQuarantinedCount
public void incrementQuarantinedCount()
- Specified by:
incrementQuarantinedCount
in interface MutableTestResultsSummary
addToTotalDuration
public void addToTotalDuration(long addition)
getSuccessfulTestCaseCount
public int getSuccessfulTestCaseCount()
- Specified by:
getSuccessfulTestCaseCount
in interface TestResultsSummary
setSuccessfulTestCaseCount
public void setSuccessfulTestCaseCount(int successfulTestCaseCount)
- Specified by:
setSuccessfulTestCaseCount
in interface MutableTestResultsSummary
getFailedTestCaseCount
public int getFailedTestCaseCount()
- Specified by:
getFailedTestCaseCount
in interface TestResultsSummary
setFailedTestCaseCount
public void setFailedTestCaseCount(int failedTestCaseCount)
- Specified by:
setFailedTestCaseCount
in interface MutableTestResultsSummary
getTotalTestCaseCount
public int getTotalTestCaseCount()
- Specified by:
getTotalTestCaseCount
in interface TestResultsSummary
setTotalTestCaseCount
public void setTotalTestCaseCount(int totalTestCaseCount)
- Specified by:
setTotalTestCaseCount
in interface MutableTestResultsSummary
getNewFailedTestCaseCount
public int getNewFailedTestCaseCount()
- Specified by:
getNewFailedTestCaseCount
in interface TestResultsSummary
setNewFailedTestCaseCount
public void setNewFailedTestCaseCount(int brokenTestCaseCount)
- Specified by:
setNewFailedTestCaseCount
in interface MutableTestResultsSummary
getExistingFailedTestCount
public int getExistingFailedTestCount()
- Specified by:
getExistingFailedTestCount
in interface TestResultsSummary
setExistingFailedTestCount
public void setExistingFailedTestCount(int existingFailedTestCount)
- Specified by:
setExistingFailedTestCount
in interface MutableTestResultsSummary
getFixedTestCaseCount
public int getFixedTestCaseCount()
- Specified by:
getFixedTestCaseCount
in interface TestResultsSummary
setFixedTestCaseCount
public void setFixedTestCaseCount(int fixedTestCaseCount)
- Specified by:
setFixedTestCaseCount
in interface MutableTestResultsSummary
getQuarantinedTestCaseCount
public int getQuarantinedTestCaseCount()
- Specified by:
getQuarantinedTestCaseCount
in interface TestResultsSummary
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 interface TestResultsSummary
- 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 interface TestResultsSummary
- Returns:
- total number of ignored tests
hasSkippedTestResults
public boolean hasSkippedTestResults()
- Specified by:
hasSkippedTestResults
in interface TestResultsSummary
- Returns:
- true if there were any skipped test results
setSkippedTestCaseCount
public void setSkippedTestCaseCount(int skippedTestCaseCount)
- Specified by:
setSkippedTestCaseCount
in interface MutableTestResultsSummary
setQuarantinedTestCaseCount
public void setQuarantinedTestCaseCount(int quarantinedTestCaseCount)
- Specified by:
setQuarantinedTestCaseCount
in interface MutableTestResultsSummary
getTotalTestDuration
public long getTotalTestDuration()
- Specified by:
getTotalTestDuration
in interface TestResultsSummary
- Returns:
- An aggregate of all test durations that ran in this build, in milliseconds
setTotalTestDuration
public void setTotalTestDuration(long totalTestDuration)
- Specified by:
setTotalTestDuration
in interface MutableTestResultsSummary
addCountsFrom
public void addCountsFrom(@NotNull
TestResultsSummary testResultsSummary)
- Description copied from interface:
MutableTestResultsSummary
- Merges the given
TestResultsSummary
with the current TestResultsSummary
- Specified by:
addCountsFrom
in interface MutableTestResultsSummary
- Parameters:
testResultsSummary
- to merge from
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.