Class TestResultsSummaryImpl
java.lang.Object
com.atlassian.bamboo.resultsummary.tests.TestResultsSummaryImpl
- All Implemented Interfaces:
MutableTestResultsSummary,TestResultsSummary
-
Constructor Summary
ConstructorsConstructorDescriptionTestResultsSummaryImpl(int successfulTestCaseCount, int failedTestCaseCount, int totalTestCaseCount, int brokenTestCaseCount, int existingFailedTestCount, int fixedTestCaseCount, int quarantinedTestCaseCount, int skippedTestCaseCount) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCountsFrom(@NotNull TestResultsSummary testResultsSummary) Merges the givenTestResultsSummarywith the currentTestResultsSummaryvoidaddToTotalDuration(long addition) intintintintWe use the fact that quarantined-skipped tests are counted only once as quarantinedintintintReturns number of test cases classified as skipped by the parser.int@NotNull StringintlongbooleanbooleanbooleanbooleanbooleanvoidvoidvoidvoidvoidvoidvoidvoidvoidsetExistingFailedTestCount(int existingFailedTestCount) voidsetFailedTestCaseCount(int failedTestCaseCount) voidsetFixedTestCaseCount(int fixedTestCaseCount) voidsetNewFailedTestCaseCount(int brokenTestCaseCount) voidsetQuarantinedTestCaseCount(int quarantinedTestCaseCount) voidsetSkippedTestCaseCount(int skippedTestCaseCount) voidsetSuccessfulTestCaseCount(int successfulTestCaseCount) voidsetTotalTestCaseCount(int totalTestCaseCount) voidsetTotalTestDuration(long totalTestDuration) toString()
-
Constructor Details
-
TestResultsSummaryImpl
public TestResultsSummaryImpl() -
TestResultsSummaryImpl
public TestResultsSummaryImpl(int successfulTestCaseCount, int failedTestCaseCount, int totalTestCaseCount, int brokenTestCaseCount, int existingFailedTestCount, int fixedTestCaseCount, int quarantinedTestCaseCount, int skippedTestCaseCount)
-
-
Method Details
-
getTestSummaryDescription
- Specified by:
getTestSummaryDescriptionin interfaceTestResultsSummary
-
hasFailedTestResults
public boolean hasFailedTestResults()- Specified by:
hasFailedTestResultsin interfaceTestResultsSummary
-
hasQuarantinedTestResults
public boolean hasQuarantinedTestResults()- Specified by:
hasQuarantinedTestResultsin interfaceTestResultsSummary
-
hasIgnoredTestResults
public boolean hasIgnoredTestResults()- Specified by:
hasIgnoredTestResultsin interfaceTestResultsSummary- Returns:
- true if there are any quarantined or skipped tests
-
hasSuccessfulTestResults
public boolean hasSuccessfulTestResults()- Specified by:
hasSuccessfulTestResultsin interfaceTestResultsSummary
-
incrementSuccessCount
public void incrementSuccessCount()- Specified by:
incrementSuccessCountin interfaceMutableTestResultsSummary
-
incrementFailedCount
public void incrementFailedCount()- Specified by:
incrementFailedCountin interfaceMutableTestResultsSummary
-
incrementSkippedCount
public void incrementSkippedCount()- Specified by:
incrementSkippedCountin interfaceMutableTestResultsSummary
-
incrementTotalCount
public void incrementTotalCount()- Specified by:
incrementTotalCountin interfaceMutableTestResultsSummary
-
incrementNewFailureCount
public void incrementNewFailureCount()- Specified by:
incrementNewFailureCountin interfaceMutableTestResultsSummary
-
incrementExistingFailureCount
public void incrementExistingFailureCount()- Specified by:
incrementExistingFailureCountin interfaceMutableTestResultsSummary
-
incrementFixedCount
public void incrementFixedCount()- Specified by:
incrementFixedCountin interfaceMutableTestResultsSummary
-
incrementQuarantinedCount
public void incrementQuarantinedCount()- Specified by:
incrementQuarantinedCountin interfaceMutableTestResultsSummary
-
addToTotalDuration
public void addToTotalDuration(long addition) - Specified by:
addToTotalDurationin interfaceMutableTestResultsSummary
-
getSuccessfulTestCaseCount
public int getSuccessfulTestCaseCount()- Specified by:
getSuccessfulTestCaseCountin interfaceTestResultsSummary
-
setSuccessfulTestCaseCount
public void setSuccessfulTestCaseCount(int successfulTestCaseCount) - Specified by:
setSuccessfulTestCaseCountin interfaceMutableTestResultsSummary
-
getFailedTestCaseCount
public int getFailedTestCaseCount()- Specified by:
getFailedTestCaseCountin interfaceTestResultsSummary
-
setFailedTestCaseCount
public void setFailedTestCaseCount(int failedTestCaseCount) - Specified by:
setFailedTestCaseCountin interfaceMutableTestResultsSummary
-
getTotalTestCaseCount
public int getTotalTestCaseCount()- Specified by:
getTotalTestCaseCountin interfaceTestResultsSummary
-
setTotalTestCaseCount
public void setTotalTestCaseCount(int totalTestCaseCount) - Specified by:
setTotalTestCaseCountin interfaceMutableTestResultsSummary
-
getNewFailedTestCaseCount
public int getNewFailedTestCaseCount()- Specified by:
getNewFailedTestCaseCountin interfaceTestResultsSummary
-
setNewFailedTestCaseCount
public void setNewFailedTestCaseCount(int brokenTestCaseCount) - Specified by:
setNewFailedTestCaseCountin interfaceMutableTestResultsSummary
-
getExistingFailedTestCount
public int getExistingFailedTestCount()- Specified by:
getExistingFailedTestCountin interfaceTestResultsSummary
-
setExistingFailedTestCount
public void setExistingFailedTestCount(int existingFailedTestCount) - Specified by:
setExistingFailedTestCountin interfaceMutableTestResultsSummary
-
getFixedTestCaseCount
public int getFixedTestCaseCount()- Specified by:
getFixedTestCaseCountin interfaceTestResultsSummary
-
setFixedTestCaseCount
public void setFixedTestCaseCount(int fixedTestCaseCount) - Specified by:
setFixedTestCaseCountin interfaceMutableTestResultsSummary
-
getQuarantinedTestCaseCount
public int getQuarantinedTestCaseCount()- Specified by:
getQuarantinedTestCaseCountin interfaceTestResultsSummary
-
getSkippedTestCaseCount
public int getSkippedTestCaseCount()Description copied from interface:TestResultsSummaryReturns number of test cases classified as skipped by the parser. Quarantined skipped tests are not counted.- Specified by:
getSkippedTestCaseCountin 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:
getIgnoredTestCaseCountin interfaceTestResultsSummary- Returns:
- total number of ignored tests
-
hasSkippedTestResults
public boolean hasSkippedTestResults()- Specified by:
hasSkippedTestResultsin interfaceTestResultsSummary- Returns:
- true if there were any skipped test results
-
setSkippedTestCaseCount
public void setSkippedTestCaseCount(int skippedTestCaseCount) - Specified by:
setSkippedTestCaseCountin interfaceMutableTestResultsSummary
-
setQuarantinedTestCaseCount
public void setQuarantinedTestCaseCount(int quarantinedTestCaseCount) - Specified by:
setQuarantinedTestCaseCountin interfaceMutableTestResultsSummary
-
getTotalTestDuration
public long getTotalTestDuration()- Specified by:
getTotalTestDurationin interfaceTestResultsSummary- Returns:
- An aggregate of all test durations that ran in this build, in milliseconds
-
setTotalTestDuration
public void setTotalTestDuration(long totalTestDuration) - Specified by:
setTotalTestDurationin interfaceMutableTestResultsSummary
-
addCountsFrom
Description copied from interface:MutableTestResultsSummaryMerges the givenTestResultsSummarywith the currentTestResultsSummary- Specified by:
addCountsFromin interfaceMutableTestResultsSummary- Parameters:
testResultsSummary- to merge from
-
toString
-