Class 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 Summary

      Constructors 
      Constructor Description
      SuiteSummaryResult​(int aTestSuccessCount, int aTestFailCount, int aTestExceptionCount, int aCallExceptionCount, long anExecutionTime)
      Creates an instance.
      SuiteSummaryResult​(long anExecutionTime)
      Creates an instance.
    • 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 tests
        aTestFailCount - the number of failed tests
        aTestExceptionCount - the number of exceptions
        anExecutionTime - 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 tests
        aTestFailCount - the number of failed tests
        aTestExceptionCount - 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