Skip to content

Commit 176b0b0

Browse files
committedApr 26, 2025·
Migrate remaining JUnit 4 tests to JUnit Jupiter where feasible
In 49e5c84 I unfortunately overlooked several JUnit 4 based tests in the `junit4` package that should be migrated to JUnit Jupiter. This commit address those remaining test classes. See gh-23451 See gh-34794 Closes gh-34813
1 parent c48ff35 commit 176b0b0

File tree

59 files changed

+534
-617
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+534
-617
lines changed
 

‎spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ void endToEndTestsForBeanOverrides() {
167167
void endToEndTestsForSelectedTestClasses() {
168168
List<Class<?>> testClasses = List.of(
169169
org.springframework.test.context.bean.override.easymock.EasyMockBeanIntegrationTests.class,
170-
org.springframework.test.context.junit4.SpringJUnit4ClassRunnerAppCtxTests.class,
171170
org.springframework.test.context.junit4.ParameterizedDependencyInjectionTests.class
172171
);
173172

‎spring-test/src/test/java/org/springframework/test/context/cache/SpringExtensionContextCacheTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* @see ContextCacheTests
4848
* @see LruContextCacheTests
4949
*/
50-
@SpringJUnitConfig(locations = "../junit4/SpringJUnit4ClassRunnerAppCtxTests-context.xml")
50+
@SpringJUnitConfig(locations = "../config/CoreContextConfigurationAppCtxTests-context.xml")
5151
@TestExecutionListeners({ DependencyInjectionTestExecutionListener.class, DirtiesContextTestExecutionListener.class })
5252
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
5353
class SpringExtensionContextCacheTests {

0 commit comments

Comments
 (0)
Please sign in to comment.