Package testUtils
Record Class TestResultsRecords.TestIterationResult
java.lang.Object
java.lang.Record
testUtils.TestResultsRecords.TestIterationResult
- Enclosing class:
TestResultsRecords
public static record TestResultsRecords.TestIterationResult(int id, String outcome, String comment, Long durationInMs, String errorMessage)
extends Record
Represents a single test iteration result.
-
Constructor Summary
ConstructorsConstructorDescriptionTestIterationResult(int id, String outcome, String comment, Long durationInMs, String errorMessage) Creates an instance of aTestIterationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncomment()Returns the value of thecommentrecord component.Returns the value of thedurationInMsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.outcome()Returns the value of theoutcomerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TestIterationResult
public TestIterationResult(int id, String outcome, String comment, Long durationInMs, String errorMessage) Creates an instance of aTestIterationResultrecord class.- Parameters:
id- the value for theidrecord componentoutcome- the value for theoutcomerecord componentcomment- the value for thecommentrecord componentdurationInMs- the value for thedurationInMsrecord componenterrorMessage- the value for theerrorMessagerecord 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
public int 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
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-
durationInMs
Returns the value of thedurationInMsrecord component.- Returns:
- the value of the
durationInMsrecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-