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 Summary
ConstructorsConstructorDescriptionRunResult(String mode, List<CaseResult> cases, List<IssueResult> issues, String junitReport) Creates an instance of aRunResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncases()Returns the value of thecasesrecord component.static RunResultcompleted(String mode, List<GameTestInstance> instances, List<IssueResult> issues, String junitReport) static RunResultcompletedCases(String mode, List<CaseResult> cases, List<IssueResult> issues, String junitReport) longdoublefinal booleanIndicates whether some other object is "equal to" this one.intexitCode()longfailed()final inthashCode()Returns a hash code value for this object.longlongissues()Returns the value of theissuesrecord component.longlongReturns the value of thejunitReportrecord component.longmode()Returns the value of themoderecord component.longlonglonglongpassed()booleanstatic RunResultpreRun(String mode, List<IssueResult> issues, String junitReport) longlonglongintlongskipped()longstatus()longtimedOut()final StringtoString()Returns a string representation of this record class.withAdditionalIssue(IssueResult issue)
-
Constructor Details
-
RunResult
Creates an instance of aRunResultrecord class.- Parameters:
mode- the value for themoderecord componentcases- the value for thecasesrecord componentissues- the value for theissuesrecord componentjunitReport- the value for thejunitReportrecord 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
-
withAdditionalIssue
-
exitCode
public int exitCode() -
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
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
cases
Returns the value of thecasesrecord component.- Returns:
- the value of the
casesrecord component
-
issues
Returns the value of theissuesrecord component.- Returns:
- the value of the
issuesrecord component
-
junitReport
Returns the value of thejunitReportrecord component.- Returns:
- the value of the
junitReportrecord component
-