Record Class CaseResult

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

@Desugar public record CaseResult(String id, String classname, String name, CaseResult.Status status, boolean required, int tickCount, double timeSeconds, String failureMessage, String failureType, String failureTrace, List<String> outputLines, String blockedByIssueId) extends Record
  • Field Details

  • Constructor Details

    • CaseResult

      public CaseResult(String id, String classname, String name, CaseResult.Status status, boolean required, int tickCount, double timeSeconds, String failureMessage, String failureType, String failureTrace, List<String> outputLines, String blockedByIssueId)
      Creates an instance of a CaseResult record class.
      Parameters:
      id - the value for the id record component
      classname - the value for the classname record component
      name - the value for the name record component
      status - the value for the status record component
      required - the value for the required record component
      tickCount - the value for the tickCount record component
      timeSeconds - the value for the timeSeconds record component
      failureMessage - the value for the failureMessage record component
      failureType - the value for the failureType record component
      failureTrace - the value for the failureTrace record component
      outputLines - the value for the outputLines record component
      blockedByIssueId - the value for the blockedByIssueId record component
    • CaseResult

      public CaseResult(String id, String classname, String name, CaseResult.Status status, boolean required, int tickCount, double timeSeconds, String failureMessage, String failureType, String failureTrace, List<String> outputLines)
  • Method Details

    • from

      public static CaseResult from(GameTestInstance inst)
    • skippedByIssue

      public static CaseResult skippedByIssue(GameTestDefinition definition, String blockedByIssueId, String message)
    • skippedByIssue

      public static CaseResult skippedByIssue(GameTestDefinition definition, String blockedByIssueId, String message, String failureType)
    • skipped

      public static CaseResult skipped(GameTestDefinition definition, String reason, String skipType)
    • templateError

      public static CaseResult templateError(GameTestDefinition definition, String message, Throwable cause)
    • parameterSummary

      public String parameterSummary()
      Supplied parameter summary when this result represents a parameterized case.

      The summary is also emitted as JUnit system-out; this accessor lets status JSON expose the same input without copying all event output into that compact report.

    • passed

      public boolean passed()
    • failed

      public boolean failed()
    • timedOut

      public boolean timedOut()
    • skipped

      public boolean skipped()
    • skipReason

      public String skipReason()
    • error

      public boolean error()
    • incomplete

      public boolean incomplete()
    • failedRequiredCase

      public boolean failedRequiredCase()
    • requiredFailed

      public boolean requiredFailed()
    • requiredTimedOut

      public boolean requiredTimedOut()
    • optionalFailed

      public boolean optionalFailed()
    • optionalTimedOut

      public boolean optionalTimedOut()
    • failedOptionalCase

      public boolean failedOptionalCase()
    • skippedBySetup

      public boolean skippedBySetup()
    • infrastructureError

      public boolean infrastructureError()
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • classname

      public String classname()
      Returns the value of the classname record component.
      Returns:
      the value of the classname record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • status

      public CaseResult.Status status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • required

      public boolean required()
      Returns the value of the required record component.
      Returns:
      the value of the required record component
    • tickCount

      public int tickCount()
      Returns the value of the tickCount record component.
      Returns:
      the value of the tickCount record component
    • timeSeconds

      public double timeSeconds()
      Returns the value of the timeSeconds record component.
      Returns:
      the value of the timeSeconds record component
    • failureMessage

      public String failureMessage()
      Returns the value of the failureMessage record component.
      Returns:
      the value of the failureMessage record component
    • failureType

      public String failureType()
      Returns the value of the failureType record component.
      Returns:
      the value of the failureType record component
    • failureTrace

      public String failureTrace()
      Returns the value of the failureTrace record component.
      Returns:
      the value of the failureTrace record component
    • outputLines

      public List<String> outputLines()
      Returns the value of the outputLines record component.
      Returns:
      the value of the outputLines record component
    • blockedByIssueId

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