Record Class TestSummary.TestInfo

java.lang.Object
java.lang.Record
net.neoforged.testframework.summary.TestSummary.TestInfo
Enclosing class:
TestSummary

public static record TestSummary.TestInfo(String testId, Component name, List<Component> description, Test.Status status, List<String> groups, boolean enabled, boolean manual, boolean required) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final List<Component>
    The field for the description record component.
    private final boolean
    The field for the enabled record component.
    private final List<String>
    The field for the groups record component.
    private final boolean
    The field for the manual record component.
    private final Component
    The field for the name record component.
    private final boolean
    The field for the required record component.
    private final Test.Status
    The field for the status record component.
    private final String
    The field for the testId record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TestInfo(String testId, Component name, List<Component> description, Test.Status status, List<String> groups, boolean enabled, boolean manual, boolean required)
    Creates an instance of a TestInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the description record component.
    boolean
    Returns the value of the enabled record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the groups record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the manual record component.
     
    Returns the value of the name record component.
    boolean
    Returns the value of the required record component.
     
    Returns the value of the status record component.
    Returns the value of the testId record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • testId

      private final String testId
      The field for the testId record component.
    • name

      private final Component name
      The field for the name record component.
    • description

      private final List<Component> description
      The field for the description record component.
    • status

      private final Test.Status status
      The field for the status record component.
    • groups

      private final List<String> groups
      The field for the groups record component.
    • enabled

      private final boolean enabled
      The field for the enabled record component.
    • manual

      private final boolean manual
      The field for the manual record component.
    • required

      private final boolean required
      The field for the required 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 a TestInfo record class.
      Parameters:
      testId - the value for the testId record component
      name - the value for the name record component
      description - the value for the description record component
      status - the value for the status record component
      groups - the value for the groups record component
      enabled - the value for the enabled record component
      manual - the value for the manual record component
      required - the value for the required record component
  • Method Details

    • result

      public Test.Result result()
    • message

      public String message()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • testId

      public String testId()
      Returns the value of the testId record component.
      Returns:
      the value of the testId record component
    • name

      public Component name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • description

      public List<Component> description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • status

      public Test.Status status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • groups

      public List<String> groups()
      Returns the value of the groups record component.
      Returns:
      the value of the groups record component
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • manual

      public boolean manual()
      Returns the value of the manual record component.
      Returns:
      the value of the manual record component
    • required

      public boolean required()
      Returns the value of the required record component.
      Returns:
      the value of the required record component