Record Class TestSummary.TestInfo
java.lang.Object
java.lang.Record
net.neoforged.testframework.summary.TestSummary.TestInfo
- Enclosing class:
TestSummary
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thedescriptionrecord component.private final booleanThe field for theenabledrecord component.The field for thegroupsrecord component.private final booleanThe field for themanualrecord component.private final ComponentThe field for thenamerecord component.private final booleanThe field for therequiredrecord component.private final Test.StatusThe field for thestatusrecord component.private final StringThe field for thetestIdrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.groups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.booleanmanual()Returns the value of themanualrecord component.message()name()Returns the value of thenamerecord component.booleanrequired()Returns the value of therequiredrecord component.result()status()Returns the value of thestatusrecord component.testId()Returns the value of thetestIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
testId
The field for thetestIdrecord component. -
name
The field for thenamerecord component. -
description
The field for thedescriptionrecord component. -
status
The field for thestatusrecord component. -
groups
The field for thegroupsrecord component. -
enabled
private final boolean enabledThe field for theenabledrecord component. -
manual
private final boolean manualThe field for themanualrecord component. -
required
private final boolean requiredThe field for therequiredrecord 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 aTestInforecord class.- Parameters:
testId- the value for thetestIdrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentstatus- the value for thestatusrecord componentgroups- the value for thegroupsrecord componentenabled- the value for theenabledrecord componentmanual- the value for themanualrecord componentrequired- the value for therequiredrecord 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 thetestIdrecord component.- Returns:
- the value of the
testIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
groups
Returns the value of thegroupsrecord component.- Returns:
- the value of the
groupsrecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
manual
public boolean manual()Returns the value of themanualrecord component.- Returns:
- the value of the
manualrecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-