Enum EventType
- java.lang.Object
-
- java.lang.Enum<EventType>
-
- com.carrotsearch.ant.tasks.junit4.events.EventType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPEND_STDERR
APPEND_STDOUT
BOOTSTRAP
IDLE
QUIT
SUITE_COMPLETED
SUITE_FAILURE
SUITE_STARTED
TEST_FAILURE
TEST_FINISHED
TEST_IGNORED
TEST_IGNORED_ASSUMPTION
TEST_STARTED
-
Field Summary
Fields Modifier and Type Field Description java.lang.Class<? extends RemoteEvent>
eventClass
Concrete class associated with the given event type.
-
Constructor Summary
Constructors Modifier Constructor Description private
EventType(java.lang.Class<? extends RemoteEvent> eventClass)
Initialize with concrete event class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteEvent
deserialize(JsonReader input)
Deserialize a given event type from stream.static EventType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
eventClass
public final java.lang.Class<? extends RemoteEvent> eventClass
Concrete class associated with the given event type.
-
-
Constructor Detail
-
EventType
private EventType(java.lang.Class<? extends RemoteEvent> eventClass)
Initialize with concrete event class.
-
-
Method Detail
-
values
public static EventType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EventType c : EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
deserialize
public RemoteEvent deserialize(JsonReader input) throws java.io.IOException
Deserialize a given event type from stream.- Throws:
java.io.IOException
-
-