Record Class RunResult

java.lang.Object
java.lang.Record
com.gtnewhorizons.horizonqa.report.RunResult

@Desugar public record RunResult(String mode, List<CaseResult> cases, List<IssueResult> issues, String junitReport) extends Record
  • Constructor Details

    • RunResult

      public RunResult(String mode, List<CaseResult> cases, List<IssueResult> issues, String junitReport)
      Creates an instance of a RunResult record class.
      Parameters:
      mode - the value for the mode record component
      cases - the value for the cases record component
      issues - the value for the issues record component
      junitReport - the value for the junitReport record component
  • Method Details

    • completed

      public static RunResult completed(String mode, List<GameTestInstance> instances, List<IssueResult> issues, String junitReport)
    • completedCases

      public static RunResult completedCases(String mode, List<CaseResult> cases, List<IssueResult> issues, String junitReport)
    • preRun

      public static RunResult preRun(String mode, List<IssueResult> issues, String junitReport)
    • withAdditionalIssue

      public RunResult withAdditionalIssue(IssueResult issue)
    • exitCode

      public int exitCode()
    • status

      public String status()
    • selectedTests

      public int selectedTests()
    • passed

      public long passed()
    • failed

      public long failed()
    • timedOut

      public long timedOut()
    • skipped

      public long skipped()
    • incomplete

      public long incomplete()
    • diagnosticErrors

      public long diagnosticErrors()
    • optionalFailures

      public long optionalFailures()
    • requiredFailures

      public long requiredFailures()
    • requiredFailed

      public long requiredFailed()
    • requiredTimedOut

      public long requiredTimedOut()
    • optionalFailed

      public long optionalFailed()
    • optionalTimedOut

      public long optionalTimedOut()
    • skippedBySetup

      public long skippedBySetup()
    • infrastructureErrors

      public long infrastructureErrors()
    • junitFailures

      public long junitFailures()
    • junitErrors

      public long junitErrors()
    • junitSkipped

      public long junitSkipped()
    • passedRun

      public boolean passedRun()
    • durationSeconds

      public double durationSeconds()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • mode

      public String mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • cases

      public List<CaseResult> cases()
      Returns the value of the cases record component.
      Returns:
      the value of the cases record component
    • issues

      public List<IssueResult> issues()
      Returns the value of the issues record component.
      Returns:
      the value of the issues record component
    • junitReport

      public String junitReport()
      Returns the value of the junitReport record component.
      Returns:
      the value of the junitReport record component