|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2019 the original author or authors. |
| 2 | + * Copyright 2002-2016 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
27 | 27 | import org.springframework.beans.factory.annotation.Autowired;
|
28 | 28 | import org.springframework.context.ApplicationContext;
|
29 | 29 | import org.springframework.context.annotation.Configuration;
|
30 |
| -import org.springframework.test.context.TestExecutionListeners; |
31 | 30 | import org.springframework.test.context.junit4.SpringRunner;
|
32 |
| -import org.springframework.test.context.support.DependencyInjectionTestExecutionListener; |
33 |
| -import org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener; |
34 |
| -import org.springframework.test.context.support.DirtiesContextTestExecutionListener; |
35 | 31 |
|
36 | 32 | import static org.junit.Assert.*;
|
37 | 33 | import static org.springframework.test.context.cache.ContextCacheTestUtils.*;
|
@@ -76,14 +72,6 @@ private void runTestClassAndAssertStats(Class<?> testClass, int expectedTestCoun
|
76 | 72 |
|
77 | 73 |
|
78 | 74 | @RunWith(SpringRunner.class)
|
79 |
| - // Ensure that we do not include the EventPublishingTestExecutionListener |
80 |
| - // since it will access the ApplicationContext for each method in the |
81 |
| - // TestExecutionListener API, thus distorting our cache hit/miss results. |
82 |
| - @TestExecutionListeners({ |
83 |
| - DirtiesContextBeforeModesTestExecutionListener.class, |
84 |
| - DependencyInjectionTestExecutionListener.class, |
85 |
| - DirtiesContextTestExecutionListener.class |
86 |
| - }) |
87 | 75 | public static class ClassLevelDirtiesContextWithCleanMethodsAndDefaultModeTestCase
|
88 | 76 | implements DirtiesContextTestInterface {
|
89 | 77 |
|
|
0 commit comments