Package nl.stokpop.eventscheduler.event
Class EventDefault
- java.lang.Object
-
- nl.stokpop.eventscheduler.api.EventAdapter<EventContext>
-
- nl.stokpop.eventscheduler.event.EventDefault
-
- All Implemented Interfaces:
Event
public class EventDefault extends EventAdapter<EventContext>
-
-
Field Summary
-
Fields inherited from class nl.stokpop.eventscheduler.api.EventAdapter
eventContext, eventMessageBus, logger
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeTest()Called before the test run starts.EventCheckcheck()Called to check test results (for example the requirements are checked).voidcustomEvent(CustomEvent scheduleEvent)Called for each custom event, according to the custom even schedule.voidstartTest()Called when test run actually starts.-
Methods inherited from class nl.stokpop.eventscheduler.api.EventAdapter
abortTest, afterTest, getName, keepAlive, setOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface nl.stokpop.eventscheduler.api.Event
allowedCustomEvents
-
-
-
-
Method Detail
-
beforeTest
public void beforeTest()
Description copied from interface:EventCalled before the test run starts. You can for instance cleanup the test environment and/or restart the server under test.- Specified by:
beforeTestin interfaceEvent- Overrides:
beforeTestin classEventAdapter<EventContext>
-
startTest
public void startTest()
Description copied from interface:EventCalled when test run actually starts.- Specified by:
startTestin interfaceEvent- Overrides:
startTestin classEventAdapter<EventContext>
-
check
public EventCheck check()
Description copied from interface:EventCalled to check test results (for example the requirements are checked). Can be used to have a test run fail or succeed in continuous integration setups.- Specified by:
checkin interfaceEvent- Overrides:
checkin classEventAdapter<EventContext>- Returns:
- even check that indicated a failed or successful run for this event.
-
customEvent
public void customEvent(CustomEvent scheduleEvent)
Description copied from interface:EventCalled for each custom event, according to the custom even schedule.- Specified by:
customEventin interfaceEvent- Overrides:
customEventin classEventAdapter<EventContext>- Parameters:
scheduleEvent- the custom event, use to execute specific behaviour in the event handler
-
-