Fix broken tests

This commit is contained in:
Sam Brannen
2024-06-03 14:40:13 +02:00
parent 8047a22237
commit 1536f34fff
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ class FailingTestBeanInheritanceIntegrationTests {
message("""
Found 2 competing static test bean factory methods in %s with return type %s \
whose name matches one of the supported candidates \
[thirdBeanTestOverride, anotherBeanTestOverride]"""
[anotherBeanTestOverride, thirdBeanTestOverride]"""
.formatted(testClass.getName(), AbstractTestBeanIntegrationTestCase.Pojo.class.getName())))));
}

View File

@@ -129,7 +129,7 @@ class TestBeanOverrideProcessorTests {
.withMessage("""
Failed to find a static test bean factory method in %s with return type %s \
whose name matches one of the supported candidates %s""",
clazz.getName(), returnType.getName(), List.of("someFieldTestOverride", "fieldTestOverride"));
clazz.getName(), returnType.getName(), List.of("fieldTestOverride", "someFieldTestOverride"));
}
@Test