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() . |
getTimestamp
toString
public 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 EventObject
TestContext
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()