public abstract class EventAdapter extends java.lang.Object implements Event
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
eventName |
protected EventProperties |
eventProperties |
protected EventLogger |
logger |
protected TestContext |
testContext |
| Constructor and Description |
|---|
EventAdapter(java.lang.String eventName,
TestContext testContext,
EventProperties eventProperties,
EventLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortTest()
Called for test abort.
|
void |
afterTest()
Called after the test run is done.
|
void |
beforeTest()
Called before the test run starts.
|
EventCheck |
check()
Called to check test results (for example the requirements are checked).
|
void |
customEvent(CustomEvent customEvent)
Called for each custom event, according to the custom even schedule.
|
java.lang.String |
getName() |
void |
keepAlive()
Called for each keep alive event for this test run.
|
static java.util.Set<java.lang.String> |
setOf(java.lang.String... items)
Convenience method for the allowed properties or events.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowedCustomEvents, allowedPropertiesprotected final java.lang.String eventName
protected final TestContext testContext
protected final EventProperties eventProperties
protected final EventLogger logger
public EventAdapter(java.lang.String eventName,
TestContext testContext,
EventProperties eventProperties,
EventLogger logger)
public void beforeTest()
EventbeforeTest in interface Eventpublic void afterTest()
Eventpublic void keepAlive()
Eventpublic void abortTest()
Eventpublic EventCheck check()
Eventpublic void customEvent(CustomEvent customEvent)
EventcustomEvent in interface EventcustomEvent - the custom event, use to execute specific behaviour in the event handlerpublic final java.lang.String getName()
public static java.util.Set<java.lang.String> setOf(java.lang.String... items)
items - the allowed props or events