com.carrotsearch.ant.tasks.junit4.events
Enum EventType

java.lang.Object
  extended by java.lang.Enum<EventType>
      extended by 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 Summary
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
 Class<? extends IEvent> eventClass
          Concrete class associated with the given event type.
 
Method Summary
static EventType valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 Class<? extends IEvent> eventClass
Concrete class associated with the given event type.

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(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


Copyright © 2011-2012 Carrot Search s.c.. All Rights Reserved.