@RecordApplicationEvents
@RecordApplicationEvents
@RecordApplicationEvents
是一个注解,可以应用于测试类,以指示 Spring TestContext Framework 在单个测试执行期间记录在 ApplicationContext
中发布的所有应用程序事件。
记录的事件可以通过测试中的 ApplicationEvents
API 访问。
请参阅 Application Events 和 @RecordApplicationEvents javadoc 以获取示例和更多详细信息。