Revert "Register EventPublishingTestExecutionListener by default"
This reverts commit 13543f5e0f.
This commit is contained in:
@@ -61,6 +61,14 @@ import org.springframework.test.context.support.AbstractTestExecutionListener;
|
||||
* support. For further details, consult the class-level Javadoc for
|
||||
* {@link org.springframework.context.event.EventListener @EventListener}.
|
||||
*
|
||||
* <h3>Listener Registration</h3>
|
||||
* <p>Note that this {@code TestExecutionListener} is not registered by default,
|
||||
* but it may be registered for a given test class via
|
||||
* {@link org.springframework.test.context.TestExecutionListeners @TestExecutionListeners}
|
||||
* or globally via the {@link org.springframework.core.io.support.SpringFactoriesLoader
|
||||
* SpringFactoriesLoader} mechanism (consult the Javadoc and Spring reference manual for
|
||||
* details).
|
||||
*
|
||||
* @author Frank Scheffler
|
||||
* @author Sam Brannen
|
||||
* @since 5.2
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# Default TestExecutionListeners for the Spring TestContext Framework
|
||||
#
|
||||
org.springframework.test.context.TestExecutionListener = \
|
||||
org.springframework.test.context.event.EventPublishingTestExecutionListener,\
|
||||
org.springframework.test.context.web.ServletTestExecutionListener,\
|
||||
org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener,\
|
||||
org.springframework.test.context.support.DependencyInjectionTestExecutionListener,\
|
||||
|
||||
@@ -41,6 +41,7 @@ import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.TestContext;
|
||||
import org.springframework.test.context.TestContextManager;
|
||||
import org.springframework.test.context.TestExecutionListener;
|
||||
import org.springframework.test.context.TestExecutionListeners;
|
||||
import org.springframework.test.context.event.annotation.AfterTestClass;
|
||||
import org.springframework.test.context.event.annotation.AfterTestExecution;
|
||||
import org.springframework.test.context.event.annotation.AfterTestMethod;
|
||||
@@ -192,6 +193,7 @@ public class EventPublishingTestExecutionListenerIntegrationTests {
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@ContextConfiguration(classes = TestEventListenerConfiguration.class)
|
||||
@TestExecutionListeners(EventPublishingTestExecutionListener.class)
|
||||
public static class ExampleTestCase {
|
||||
|
||||
@Traceable
|
||||
|
||||
Reference in New Issue
Block a user