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 aTestIterationResult
record class. -
Method Summary
Modifier and TypeMethodDescriptioncomment()
Returns the value of thecomment
record component.Returns the value of thedurationInMs
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theerrorMessage
record component.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.outcome()
Returns the value of theoutcome
record component.final String
toString()
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 aTestIterationResult
record class.- Parameters:
id
- the value for theid
record componentoutcome
- the value for theoutcome
record componentcomment
- the value for thecomment
record componentdurationInMs
- the value for thedurationInMs
record componenterrorMessage
- the value for theerrorMessage
record 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 theid
record component.- Returns:
- the value of the
id
record component
-
outcome
Returns the value of theoutcome
record component.- Returns:
- the value of the
outcome
record component
-
comment
Returns the value of thecomment
record component.- Returns:
- the value of the
comment
record component
-
durationInMs
Returns the value of thedurationInMs
record component.- Returns:
- the value of the
durationInMs
record component
-
errorMessage
Returns the value of theerrorMessage
record component.- Returns:
- the value of the
errorMessage
record component
-