Skip to content

Commit 1536f34

Browse files
committed
Fix broken tests
1 parent 8047a22 commit 1536f34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-test/src/test/java/org/springframework/test/context/bean/override/convention/FailingTestBeanInheritanceIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void failsIfMethod1InSupertypeAndMethod2InType() {
5858
message("""
5959
Found 2 competing static test bean factory methods in %s with return type %s \
6060
whose name matches one of the supported candidates \
61-
[thirdBeanTestOverride, anotherBeanTestOverride]"""
61+
[anotherBeanTestOverride, thirdBeanTestOverride]"""
6262
.formatted(testClass.getName(), AbstractTestBeanIntegrationTestCase.Pojo.class.getName())))));
6363
}
6464

spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanOverrideProcessorTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void createMetaDataForConventionBasedFactoryMethod() throws Exception {
129129
.withMessage("""
130130
Failed to find a static test bean factory method in %s with return type %s \
131131
whose name matches one of the supported candidates %s""",
132-
clazz.getName(), returnType.getName(), List.of("someFieldTestOverride", "fieldTestOverride"));
132+
clazz.getName(), returnType.getName(), List.of("fieldTestOverride", "someFieldTestOverride"));
133133
}
134134

135135
@Test

0 commit comments

Comments
 (0)