Record Class TestSummary.TestInfo
java.lang.Object
java.lang.Record
net.neoforged.testframework.summary.TestSummary.TestInfo
- Enclosing class:
TestSummary
-
Field Summary
Modifier and TypeFieldDescriptionThe field for thedescription
record component.private final boolean
The field for theenabled
record component.The field for thegroups
record component.private final boolean
The field for themanual
record component.private final Component
The field for thename
record component.private final boolean
The field for therequired
record component.private final Test.Status
The field for thestatus
record component.private final String
The field for thetestId
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.boolean
enabled()
Returns the value of theenabled
record component.final boolean
Indicates whether some other object is "equal to" this one.groups()
Returns the value of thegroups
record component.final int
hashCode()
Returns a hash code value for this object.boolean
manual()
Returns the value of themanual
record component.message()
name()
Returns the value of thename
record component.boolean
required()
Returns the value of therequired
record component.result()
status()
Returns the value of thestatus
record component.testId()
Returns the value of thetestId
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
testId
The field for thetestId
record component. -
name
The field for thename
record component. -
description
The field for thedescription
record component. -
status
The field for thestatus
record component. -
groups
The field for thegroups
record component. -
enabled
private final boolean enabledThe field for theenabled
record component. -
manual
private final boolean manualThe field for themanual
record component. -
required
private final boolean requiredThe field for therequired
record component.
-
-
Constructor Details
-
TestInfo
public TestInfo(String testId, Component name, List<Component> description, Test.Status status, List<String> groups, boolean enabled, boolean manual, boolean required) Creates an instance of aTestInfo
record class.- Parameters:
testId
- the value for thetestId
record componentname
- the value for thename
record componentdescription
- the value for thedescription
record componentstatus
- the value for thestatus
record componentgroups
- the value for thegroups
record componentenabled
- the value for theenabled
record componentmanual
- the value for themanual
record componentrequired
- the value for therequired
record component
-
-
Method Details
-
result
-
message
-
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 '=='. -
testId
Returns the value of thetestId
record component.- Returns:
- the value of the
testId
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
groups
Returns the value of thegroups
record component.- Returns:
- the value of the
groups
record component
-
enabled
public boolean enabled()Returns the value of theenabled
record component.- Returns:
- the value of the
enabled
record component
-
manual
public boolean manual()Returns the value of themanual
record component.- Returns:
- the value of the
manual
record component
-
required
public boolean required()Returns the value of therequired
record component.- Returns:
- the value of the
required
record component
-