Record Class ConformanceReport.ScenarioResult
java.lang.Object
java.lang.Record
codes.grow.packages.jaeger.testing.ConformanceReport.ScenarioResult
- Record Components:
id- scenario idcategory- categorystatus- outcomereason- failure or skip reason, empty when passedsteps- step resultsdurationMs- wall time
- Enclosing class:
ConformanceReport
public static record ConformanceReport.ScenarioResult(String id, String category, ConformanceReport.Status status, String reason, List<ConformanceReport.StepResult> steps, long durationMs)
extends Record
Result of one scenario.
-
Constructor Summary
ConstructorsConstructorDescriptionScenarioResult(String id, String category, ConformanceReport.Status status, String reason, List<ConformanceReport.StepResult> steps, long durationMs) Creates a result; the list is copied. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.describe()Returns a one-line description.longReturns the value of thedurationMsrecord component.final 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.reason()Returns the value of thereasonrecord component.status()Returns the value of thestatusrecord component.steps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScenarioResult
public ScenarioResult(String id, String category, ConformanceReport.Status status, String reason, List<ConformanceReport.StepResult> steps, long durationMs) Creates a result; the list is copied.- Parameters:
id- scenario idcategory- categorystatus- outcomereason- reasonsteps- step resultsdurationMs- wall time
-
-
Method Details
-
describe
Returns a one-line description.- Returns:
- e.g.
FAILED secrets.roundtrip: step 3 get: ...
-
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
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-