Class SuiteSummaryResult
- java.lang.Object
-
- de.gebit.integrity.runner.results.Result
-
- de.gebit.integrity.runner.results.SuiteSummaryResult
-
- Direct Known Subclasses:
SuiteResult
public class SuiteSummaryResult extends Result
This is a basic version of theSuiteResult
class, which only contains the summary data. When forks return from a suite execution, detailed information about the tests which were run is not available, thus this class is used. If suites are run locally, more detailed info is available, in which caseSuiteResult
is used.- Author:
- Rene Schneider - initial API and implementation
-
-
Constructor Summary
Constructors Constructor Description SuiteSummaryResult(int aTestSuccessCount, int aTestFailCount, int aTestExceptionCount, int aCallExceptionCount, long anExecutionTime)
Creates an instance.SuiteSummaryResult(long anExecutionTime)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getCallExceptionCount()
java.lang.Integer
getExceptionCount()
Returns a total exception count, including tests and calls.java.lang.Integer
getTestExceptionCount()
java.lang.Integer
getTestFailCount()
java.lang.Integer
getTestSuccessCount()
protected void
setResultCounts(int aTestSuccessCount, int aTestFailCount, int aTestExceptionCount, int aCallExceptionCount)
Sets the summary information.-
Methods inherited from class de.gebit.integrity.runner.results.Result
getExecutionTime
-
-
-
-
Constructor Detail
-
SuiteSummaryResult
public SuiteSummaryResult(long anExecutionTime)
Creates an instance.- Parameters:
anExecutionTime
- the execution time
-
SuiteSummaryResult
public SuiteSummaryResult(int aTestSuccessCount, int aTestFailCount, int aTestExceptionCount, int aCallExceptionCount, long anExecutionTime)
Creates an instance.- Parameters:
aTestSuccessCount
- the number of successful testsaTestFailCount
- the number of failed testsaTestExceptionCount
- the number of exceptionsanExecutionTime
- the execution time
-
-
Method Detail
-
setResultCounts
protected void setResultCounts(int aTestSuccessCount, int aTestFailCount, int aTestExceptionCount, int aCallExceptionCount)
Sets the summary information.- Parameters:
aTestSuccessCount
- the number of successful testsaTestFailCount
- the number of failed testsaTestExceptionCount
- the number of exceptions
-
getTestFailCount
public java.lang.Integer getTestFailCount()
-
getTestSuccessCount
public java.lang.Integer getTestSuccessCount()
-
getTestExceptionCount
public java.lang.Integer getTestExceptionCount()
-
getCallExceptionCount
public java.lang.Integer getCallExceptionCount()
-
getExceptionCount
public java.lang.Integer getExceptionCount()
Returns a total exception count, including tests and calls.- Returns:
- the total exception count or null if no counts are available
-
-