类 DefaultApplicationEvents
java.lang.Object
cn.taketoday.test.context.event.DefaultApplicationEvents
- 所有已实现的接口:
ApplicationEvents
Default implementation of
ApplicationEvents.- 从以下版本开始:
- 4.0
- 作者:
- Oliver Drotbohm, Sam Brannen
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) voidaddEvent(cn.taketoday.context.ApplicationEvent event) voidclear()Clear all application events recorded by thisApplicationEventsinstance.Stream<cn.taketoday.context.ApplicationEvent>stream()Stream all application events that were fired during test execution.<T> Stream<T>Stream all application events or event payloads of the given type that were fired during test execution.private ObjectunwrapPayloadEvent(Object source)
-
字段详细资料
-
events
-
-
构造器详细资料
-
DefaultApplicationEvents
DefaultApplicationEvents()
-
-
方法详细资料
-
addEvent
void addEvent(cn.taketoday.context.ApplicationEvent event) -
stream
从接口复制的说明:ApplicationEventsStream all application events that were fired during test execution.- 指定者:
stream在接口中ApplicationEvents- 返回:
- a stream of all application events
- 另请参阅:
-
stream
从接口复制的说明:ApplicationEventsStream all application events or event payloads of the given type that were fired during test execution.- 指定者:
stream在接口中ApplicationEvents- 类型参数:
T- the event type- 参数:
type- the type of events or payloads to stream; nevernull- 返回:
- a stream of all application events or event payloads of the specified type
- 另请参阅:
-
clear
public void clear()从接口复制的说明:ApplicationEventsClear all application events recorded by thisApplicationEventsinstance.Subsequent calls to
ApplicationEvents.stream()orApplicationEvents.stream(Class)will only include events recorded since this method was invoked. -
unwrapPayloadEvent
-