Package akka.javasdk.testkit.eval
Record Class ReportDocument.Case
- Record Components:
id- the case idoutcome- over all runs: PASSED when every run passed, FAILED when every run failed, INCONCLUSIVE when every run was inconclusive, INCONSISTENT otherwisepassedRuns- runs with the verdict PASSfailedRuns- runs with the verdict FAILinconclusiveRuns- runs with the verdict INCONCLUSIVErequirements- one entry per evaluator at one position in the results of the case's attempts, in the order the results first appear; the runner's target and setup results are requirements too
- Enclosing class:
ReportDocument
public static record ReportDocument.Case(String id, ExperimentRunner.Outcome outcome, int passedRuns, int failedRuns, int inconclusiveRuns, List<ReportDocument.Requirement> requirements)
extends Record
One case over all its runs.
-
Constructor Summary
ConstructorsConstructorDescriptionCase(String id, ExperimentRunner.Outcome outcome, int passedRuns, int failedRuns, int inconclusiveRuns, List<ReportDocument.Requirement> requirements) Creates an instance of aCaserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefailedRunsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.intReturns the value of theinconclusiveRunsrecord component.outcome()Returns the value of theoutcomerecord component.intReturns the value of thepassedRunsrecord component.Returns the value of therequirementsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Case
public Case(String id, ExperimentRunner.Outcome outcome, int passedRuns, int failedRuns, int inconclusiveRuns, List<ReportDocument.Requirement> requirements) Creates an instance of aCaserecord class.- Parameters:
id- the value for theidrecord componentoutcome- the value for theoutcomerecord componentpassedRuns- the value for thepassedRunsrecord componentfailedRuns- the value for thefailedRunsrecord componentinconclusiveRuns- the value for theinconclusiveRunsrecord componentrequirements- the value for therequirementsrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
passedRuns
public int passedRuns()Returns the value of thepassedRunsrecord component.- Returns:
- the value of the
passedRunsrecord component
-
failedRuns
public int failedRuns()Returns the value of thefailedRunsrecord component.- Returns:
- the value of the
failedRunsrecord component
-
inconclusiveRuns
public int inconclusiveRuns()Returns the value of theinconclusiveRunsrecord component.- Returns:
- the value of the
inconclusiveRunsrecord component
-
requirements
Returns the value of therequirementsrecord component.- Returns:
- the value of the
requirementsrecord component
-