com.atlassian.bamboo.resultsummary.tests
Class TestResultsSummaryImpl

java.lang.Object
  extended by com.atlassian.bamboo.resultsummary.tests.TestResultsSummaryImpl
All Implemented Interfaces:
TestResultsSummary

public class TestResultsSummaryImpl
extends java.lang.Object
implements TestResultsSummary


Constructor Summary
TestResultsSummaryImpl()
           
TestResultsSummaryImpl(int successfulTestCaseCount, int failedTestCaseCount, int totalTestCaseCount, int brokenTestCaseCount, int existingFailedTestCount, int fixedTestCaseCount)
           
 
Method Summary
 void addToTotalDuration(long addition)
           
 int getExistingFailedTestCount()
           
 int getFailedTestCaseCount()
           
 int getFixedTestCaseCount()
           
 int getNewFailedTestCaseCount()
           
 int getSuccessfulTestCaseCount()
           
 java.lang.String getTestSummaryDescription()
           
 int getTotalTestCaseCount()
           
 long getTotalTestDuration()
           
 boolean hasFailedTestResults()
           
 boolean hasSuccessfulTestResults()
           
 void incrementExistingFailureCount()
           
 void incrementFailedCount()
           
 void incrementFixedCount()
           
 void incrementNewFailureCount()
           
 void incrementSuccessCount()
           
 void incrementTotalCount()
           
 void setExistingFailedTestCount(int existingFailedTestCount)
           
 void setFailedTestCaseCount(int failedTestCaseCount)
           
 void setFixedTestCaseCount(int fixedTestCaseCount)
           
 void setNewFailedTestCaseCount(int brokenTestCaseCount)
           
 void setSuccessfulTestCaseCount(int successfulTestCaseCount)
           
 void setTotalTestCaseCount(int totalTestCaseCount)
           
 void setTotalTestDuration(long totalTestDuration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResultsSummaryImpl

public TestResultsSummaryImpl()

TestResultsSummaryImpl

public TestResultsSummaryImpl(int successfulTestCaseCount,
                              int failedTestCaseCount,
                              int totalTestCaseCount,
                              int brokenTestCaseCount,
                              int existingFailedTestCount,
                              int fixedTestCaseCount)
Method Detail

getTestSummaryDescription

public java.lang.String getTestSummaryDescription()
Specified by:
getTestSummaryDescription in interface TestResultsSummary

hasFailedTestResults

public boolean hasFailedTestResults()
Specified by:
hasFailedTestResults in interface TestResultsSummary

hasSuccessfulTestResults

public boolean hasSuccessfulTestResults()
Specified by:
hasSuccessfulTestResults in interface TestResultsSummary

incrementSuccessCount

public void incrementSuccessCount()

incrementFailedCount

public void incrementFailedCount()

incrementTotalCount

public void incrementTotalCount()

incrementNewFailureCount

public void incrementNewFailureCount()

incrementExistingFailureCount

public void incrementExistingFailureCount()

incrementFixedCount

public void incrementFixedCount()

addToTotalDuration

public void addToTotalDuration(long addition)

getSuccessfulTestCaseCount

public int getSuccessfulTestCaseCount()
Specified by:
getSuccessfulTestCaseCount in interface TestResultsSummary

setSuccessfulTestCaseCount

public void setSuccessfulTestCaseCount(int successfulTestCaseCount)

getFailedTestCaseCount

public int getFailedTestCaseCount()
Specified by:
getFailedTestCaseCount in interface TestResultsSummary

setFailedTestCaseCount

public void setFailedTestCaseCount(int failedTestCaseCount)

getTotalTestCaseCount

public int getTotalTestCaseCount()
Specified by:
getTotalTestCaseCount in interface TestResultsSummary

setTotalTestCaseCount

public void setTotalTestCaseCount(int totalTestCaseCount)

getNewFailedTestCaseCount

public int getNewFailedTestCaseCount()
Specified by:
getNewFailedTestCaseCount in interface TestResultsSummary

setNewFailedTestCaseCount

public void setNewFailedTestCaseCount(int brokenTestCaseCount)

getExistingFailedTestCount

public int getExistingFailedTestCount()
Specified by:
getExistingFailedTestCount in interface TestResultsSummary

setExistingFailedTestCount

public void setExistingFailedTestCount(int existingFailedTestCount)

getFixedTestCaseCount

public int getFixedTestCaseCount()
Specified by:
getFixedTestCaseCount in interface TestResultsSummary

setFixedTestCaseCount

public void setFixedTestCaseCount(int fixedTestCaseCount)

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)


Copyright © 2010 Atlassian. All Rights Reserved.