From b71d95df710f05c5ab5c5afaaa152ba1c223325f Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 8 Oct 2022 16:20:55 +0200 Subject: [PATCH] Document how to switch to the default set of TestExecutionListeners Closes gh-29281 --- .../context/junit4/AbstractJUnit4SpringContextTests.java | 8 +++++--- .../AbstractTransactionalJUnit4SpringContextTests.java | 8 +++++--- .../context/testng/AbstractTestNGSpringContextTests.java | 8 +++++--- .../AbstractTransactionalTestNGSpringContextTests.java | 8 +++++--- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/test/context/junit4/AbstractJUnit4SpringContextTests.java b/spring-test/src/main/java/org/springframework/test/context/junit4/AbstractJUnit4SpringContextTests.java index 164fb5c12d3..96562578190 100644 --- a/spring-test/src/main/java/org/springframework/test/context/junit4/AbstractJUnit4SpringContextTests.java +++ b/spring-test/src/main/java/org/springframework/test/context/junit4/AbstractJUnit4SpringContextTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,8 +49,10 @@ import org.springframework.test.context.web.ServletTestExecutionListener; * the appropriate {@link org.springframework.test.context.TestExecutionListener * TestExecutionListeners} manually. * - *

The following {@link org.springframework.test.context.TestExecutionListener - * TestExecutionListeners} are configured by default: + *

This class explicitly registers the following {@code TestExecutionListener} + * implementations. If you want to switch to using the default set of + * listeners, see the class-level Javadoc for + * {@link TestExecutionListeners @TestExecutionListeners} for details. * *