Class RunResult


  • public class RunResult
    extends java.lang.Object
    Represents a test-run-result; this may be from a single test run or an aggregated result.
    In the case of timeout==true, the run-counts reflect the state of the test-run at the time of the timeout.
    Author:
    Kristian Rosenvold
    • Constructor Detail

      • RunResult

        public RunResult​(int completedCount,
                         int errors,
                         int failures,
                         int skipped)
      • RunResult

        public RunResult​(int completedCount,
                         int errors,
                         int failures,
                         int skipped,
                         int flakes)
      • RunResult

        public RunResult​(int completedCount,
                         int errors,
                         int failures,
                         int skipped,
                         java.lang.String failure,
                         boolean timeout)
      • RunResult

        public RunResult​(int completedCount,
                         int errors,
                         int failures,
                         int skipped,
                         int flakes,
                         java.lang.String failure,
                         boolean timeout)
    • Method Detail

      • failure

        public static RunResult failure​(RunResult accumulatedAtTimeout,
                                        java.lang.Exception cause)
      • getCompletedCount

        public int getCompletedCount()
      • getErrors

        public int getErrors()
      • getFlakes

        public int getFlakes()
      • getFailures

        public int getFailures()
      • getSkipped

        public int getSkipped()
      • getFailsafeCode

        public java.lang.Integer getFailsafeCode()
      • isErrorFree

        public boolean isErrorFree()
      • isInternalError

        public boolean isInternalError()
      • isFailureOrTimeout

        public boolean isFailureOrTimeout()
      • isFailure

        public boolean isFailure()
      • getFailure

        public java.lang.String getFailure()
      • isTimeout

        public boolean isTimeout()
      • noTestsRun

        public static RunResult noTestsRun()
      • isNoTestsRun

        public boolean isNoTestsRun()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object