Skip to content

Commit b71d95d

Browse files
committed
Document how to switch to the default set of TestExecutionListeners
Closes gh-29281
1 parent b20de75 commit b71d95d

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

spring-test/src/main/java/org/springframework/test/context/junit4/AbstractJUnit4SpringContextTests.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -49,8 +49,10 @@
4949
* the appropriate {@link org.springframework.test.context.TestExecutionListener
5050
* TestExecutionListeners} manually.</em>
5151
*
52-
* <p>The following {@link org.springframework.test.context.TestExecutionListener
53-
* TestExecutionListeners} are configured by default:
52+
* <p>This class explicitly registers the following {@code TestExecutionListener}
53+
* implementations. If you want to switch to using the <em>default</em> set of
54+
* listeners, see the class-level Javadoc for
55+
* {@link TestExecutionListeners @TestExecutionListeners} for details.
5456
*
5557
* <ul>
5658
* <li>{@link org.springframework.test.context.web.ServletTestExecutionListener}

spring-test/src/main/java/org/springframework/test/context/junit4/AbstractTransactionalJUnit4SpringContextTests.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -57,8 +57,10 @@
5757
* <p>Concrete subclasses must fulfill the same requirements outlined in
5858
* {@link AbstractJUnit4SpringContextTests}.
5959
*
60-
* <p>The following {@link org.springframework.test.context.TestExecutionListener
61-
* TestExecutionListeners} are configured by default:
60+
* <p>This class explicitly registers the following {@code TestExecutionListener}
61+
* implementations. If you want to switch to using the <em>default</em> set of
62+
* listeners, see the class-level Javadoc for
63+
* {@link TestExecutionListeners @TestExecutionListeners} for details.
6264
*
6365
* <ul>
6466
* <li>{@link org.springframework.test.context.web.ServletTestExecutionListener}

spring-test/src/main/java/org/springframework/test/context/testng/AbstractTestNGSpringContextTests.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -59,8 +59,10 @@
5959
* TestExecutionListeners} manually.</em> Concrete subclasses must also have
6060
* constructors which either implicitly or explicitly delegate to {@code super();}.
6161
*
62-
* <p>The following {@link org.springframework.test.context.TestExecutionListener
63-
* TestExecutionListeners} are configured by default:
62+
* <p>This class explicitly registers the following {@code TestExecutionListener}
63+
* implementations. If you want to switch to using the <em>default</em> set of
64+
* listeners, see the class-level Javadoc for
65+
* {@link TestExecutionListeners @TestExecutionListeners} for details.
6466
*
6567
* <ul>
6668
* <li>{@link org.springframework.test.context.web.ServletTestExecutionListener}

spring-test/src/main/java/org/springframework/test/context/testng/AbstractTransactionalTestNGSpringContextTests.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -56,8 +56,10 @@
5656
* <p>Concrete subclasses must fulfill the same requirements outlined in
5757
* {@link AbstractTestNGSpringContextTests}.
5858
*
59-
* <p>The following {@link org.springframework.test.context.TestExecutionListener
60-
* TestExecutionListeners} are configured by default:
59+
* <p>This class explicitly registers the following {@code TestExecutionListener}
60+
* implementations. If you want to switch to using the <em>default</em> set of
61+
* listeners, see the class-level Javadoc for
62+
* {@link TestExecutionListeners @TestExecutionListeners} for details.
6163
*
6264
* <ul>
6365
* <li>{@link org.springframework.test.context.web.ServletTestExecutionListener}

0 commit comments

Comments
 (0)