public abstract class TestContextEvent extends ApplicationEvent
EventPublishingTestExecutionListener.source| Constructor and Description |
|---|
TestContextEvent(TestContext source)
Create a new
TestContextEvent. |
| Modifier and Type | Method and Description |
|---|---|
TestContext |
getSource()
Get the
TestContext associated with this event. |
TestContext |
getTestContext()
Alias for
getSource(). |
getTimestamptoStringpublic TestContextEvent(TestContext source)
TestContextEvent.source - the TestContext associated with this event
(must not be null)public final TestContext getSource()
TestContext associated with this event.getSource in class EventObjectTestContext associated with this event (never null)getTestContext()public final TestContext getTestContext()
getSource().
This method may be favored over getSource() — for example,
to improve readability in SpEL expressions for event processing
conditions.
TestContext associated with this event (never null)getSource()