Package akka.javasdk.testkit.eval
Record Class ReportDocument.Attempt
- Record Components:
id- the case idrun- the run, from 1verdict- PASS when every result passed, FAIL when a result failed, INCONCLUSIVE when no result failed and a result is inconclusive or there is noneinteraction- the input, the reply and the traced evidenceresults- one entry per evaluator
- Enclosing class:
ReportDocument
public static record ReportDocument.Attempt(String id, int run, Evaluator.EvalResult.Verdict verdict, ReportDocument.Interaction interaction, List<ReportDocument.Result> results)
extends Record
One case in one run.
-
Constructor Summary
ConstructorsConstructorDescriptionAttempt(String id, int run, Evaluator.EvalResult.Verdict verdict, ReportDocument.Interaction interaction, List<ReportDocument.Result> results) Creates an instance of aAttemptrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinteractionrecord component.results()Returns the value of theresultsrecord component.intrun()Returns the value of therunrecord component.final StringtoString()Returns a string representation of this record class.verdict()Returns the value of theverdictrecord component.
-
Constructor Details
-
Attempt
public Attempt(String id, int run, Evaluator.EvalResult.Verdict verdict, ReportDocument.Interaction interaction, List<ReportDocument.Result> results) Creates an instance of aAttemptrecord class.- Parameters:
id- the value for theidrecord componentrun- the value for therunrecord componentverdict- the value for theverdictrecord componentinteraction- the value for theinteractionrecord componentresults- the value for theresultsrecord 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
-
run
public int run()Returns the value of therunrecord component.- Returns:
- the value of the
runrecord component
-
verdict
Returns the value of theverdictrecord component.- Returns:
- the value of the
verdictrecord component
-
interaction
Returns the value of theinteractionrecord component.- Returns:
- the value of the
interactionrecord component
-
results
Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-