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 the SuiteResult 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 case SuiteResult is used.
Author:
Rene Schneider - initial API and implementation
  • Constructor Details

    • 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 tests
      aTestFailCount - the number of failed tests
      aTestExceptionCount - the number of exceptions
      anExecutionTime - the execution time
  • Method Details

    • setResultCounts

      protected void setResultCounts(int aTestSuccessCount, int aTestFailCount, int aTestExceptionCount, int aCallExceptionCount)
      Sets the summary information.
      Parameters:
      aTestSuccessCount - the number of successful tests
      aTestFailCount - the number of failed tests
      aTestExceptionCount - the number of exceptions
    • getTestFailCount

      public Integer getTestFailCount()
    • getTestSuccessCount

      public Integer getTestSuccessCount()
    • getTestExceptionCount

      public Integer getTestExceptionCount()
    • getCallExceptionCount

      public Integer getCallExceptionCount()
    • getExceptionCount

      public Integer getExceptionCount()
      Returns a total exception count, including tests and calls.
      Returns:
      the total exception count or null if no counts are available