Browse Source

Document how to switch to the default set of TestExecutionListeners

Closes gh-29281
pull/30296/head
Sam Brannen 3 years ago
parent
commit
b71d95df71
  1. 8
      spring-test/src/main/java/org/springframework/test/context/junit4/AbstractJUnit4SpringContextTests.java
  2. 8
      spring-test/src/main/java/org/springframework/test/context/junit4/AbstractTransactionalJUnit4SpringContextTests.java
  3. 8
      spring-test/src/main/java/org/springframework/test/context/testng/AbstractTestNGSpringContextTests.java
  4. 8
      spring-test/src/main/java/org/springframework/test/context/testng/AbstractTransactionalTestNGSpringContextTests.java

8
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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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 * the appropriate {@link org.springframework.test.context.TestExecutionListener
* TestExecutionListeners} manually.</em> * TestExecutionListeners} manually.</em>
* *
* <p>The following {@link org.springframework.test.context.TestExecutionListener * <p>This class explicitly registers the following {@code TestExecutionListener}
* TestExecutionListeners} are configured by default: * implementations. If you want to switch to using the <em>default</em> set of
* listeners, see the class-level Javadoc for
* {@link TestExecutionListeners @TestExecutionListeners} for details.
* *
* <ul> * <ul>
* <li>{@link org.springframework.test.context.web.ServletTestExecutionListener} * <li>{@link org.springframework.test.context.web.ServletTestExecutionListener}

8
spring-test/src/main/java/org/springframework/test/context/junit4/AbstractTransactionalJUnit4SpringContextTests.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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -57,8 +57,10 @@ import org.springframework.util.Assert;
* <p>Concrete subclasses must fulfill the same requirements outlined in * <p>Concrete subclasses must fulfill the same requirements outlined in
* {@link AbstractJUnit4SpringContextTests}. * {@link AbstractJUnit4SpringContextTests}.
* *
* <p>The following {@link org.springframework.test.context.TestExecutionListener * <p>This class explicitly registers the following {@code TestExecutionListener}
* TestExecutionListeners} are configured by default: * implementations. If you want to switch to using the <em>default</em> set of
* listeners, see the class-level Javadoc for
* {@link TestExecutionListeners @TestExecutionListeners} for details.
* *
* <ul> * <ul>
* <li>{@link org.springframework.test.context.web.ServletTestExecutionListener} * <li>{@link org.springframework.test.context.web.ServletTestExecutionListener}

8
spring-test/src/main/java/org/springframework/test/context/testng/AbstractTestNGSpringContextTests.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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -59,8 +59,10 @@ import org.springframework.test.context.web.ServletTestExecutionListener;
* TestExecutionListeners} manually.</em> Concrete subclasses must also have * TestExecutionListeners} manually.</em> Concrete subclasses must also have
* constructors which either implicitly or explicitly delegate to {@code super();}. * constructors which either implicitly or explicitly delegate to {@code super();}.
* *
* <p>The following {@link org.springframework.test.context.TestExecutionListener * <p>This class explicitly registers the following {@code TestExecutionListener}
* TestExecutionListeners} are configured by default: * implementations. If you want to switch to using the <em>default</em> set of
* listeners, see the class-level Javadoc for
* {@link TestExecutionListeners @TestExecutionListeners} for details.
* *
* <ul> * <ul>
* <li>{@link org.springframework.test.context.web.ServletTestExecutionListener} * <li>{@link org.springframework.test.context.web.ServletTestExecutionListener}

8
spring-test/src/main/java/org/springframework/test/context/testng/AbstractTransactionalTestNGSpringContextTests.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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -56,8 +56,10 @@ import org.springframework.util.Assert;
* <p>Concrete subclasses must fulfill the same requirements outlined in * <p>Concrete subclasses must fulfill the same requirements outlined in
* {@link AbstractTestNGSpringContextTests}. * {@link AbstractTestNGSpringContextTests}.
* *
* <p>The following {@link org.springframework.test.context.TestExecutionListener * <p>This class explicitly registers the following {@code TestExecutionListener}
* TestExecutionListeners} are configured by default: * implementations. If you want to switch to using the <em>default</em> set of
* listeners, see the class-level Javadoc for
* {@link TestExecutionListeners @TestExecutionListeners} for details.
* *
* <ul> * <ul>
* <li>{@link org.springframework.test.context.web.ServletTestExecutionListener} * <li>{@link org.springframework.test.context.web.ServletTestExecutionListener}

Loading…
Cancel
Save