java.lang.Object
java.lang.Enum<EventType>
com.carrotsearch.ant.tasks.junit4.events.EventType
All Implemented Interfaces:
Serializable, Comparable<EventType>

public enum EventType extends Enum<EventType>
Events (messages) passed between the slave and the master.
  • Enum Constant Details

    • BOOTSTRAP

      public static final EventType BOOTSTRAP
    • SUITE_STARTED

      public static final EventType SUITE_STARTED
    • SUITE_FAILURE

      public static final EventType SUITE_FAILURE
    • SUITE_COMPLETED

      public static final EventType SUITE_COMPLETED
    • APPEND_STDOUT

      public static final EventType APPEND_STDOUT
    • APPEND_STDERR

      public static final EventType APPEND_STDERR
    • TEST_STARTED

      public static final EventType TEST_STARTED
    • TEST_FAILURE

      public static final EventType TEST_FAILURE
    • TEST_IGNORED_ASSUMPTION

      public static final EventType TEST_IGNORED_ASSUMPTION
    • TEST_IGNORED

      public static final EventType TEST_IGNORED
    • TEST_FINISHED

      public static final EventType TEST_FINISHED
    • IDLE

      public static final EventType IDLE
    • QUIT

      public static final EventType QUIT
  • Field Details

    • eventClass

      public final Class<? extends RemoteEvent> eventClass
      Concrete class associated with the given event type.
  • Constructor Details

    • EventType

      private EventType(Class<? extends RemoteEvent> eventClass)
      Initialize with concrete event class.
  • Method Details

    • values

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

      public static EventType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • deserialize

      public RemoteEvent deserialize(JsonReader input) throws IOException
      Deserialize a given event type from stream.
      Throws:
      IOException