Enum Class EventTest.Result

java.lang.Object
java.lang.Enum<EventTest.Result>
net.minecraftforge.eventtest.internal.EventTest.Result
All Implemented Interfaces:
Serializable, Comparable<EventTest.Result>, Constable
Enclosing class:
EventTest

public static enum EventTest.Result extends Enum<EventTest.Result>
Encodes information about how the test progressed.
  • Enum Constant Details

  • Constructor Details

    • Result

      private Result()
  • Method Details

    • values

      public static EventTest.Result[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EventTest.Result valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • passed

      public boolean passed()
      Returns:
      whether the test passed.
    • failed

      public boolean failed()
      Returns:
      whether the test or the code being tested failed.
    • errored

      public boolean errored()
      Returns:
      whether the test encountered an error