@RecordApplicationEvents

@RecordApplicationEvents 是一个可以应用于测试类的注解,用于指示 Spring TestContext Framework 在单个测试执行期间记录在 ApplicationContext 中发布的所有应用程序事件。

记录的事件可以通过测试中的 ApplicationEvents API 进行访问。

有关示例和更多详细信息,请参阅应用程序事件以及 @RecordApplicationEvents javadoc

© . This site is unofficial and not affiliated with VMware.