Invert order of suppressed exceptions (for common exception rendering)

See gh-35057
This commit is contained in:
Juergen Hoeller
2025-06-24 22:22:45 +02:00
parent 90c875144a
commit e828bbbb0a
2 changed files with 3 additions and 6 deletions
@@ -178,8 +178,8 @@ class RetryTemplateTests {
.withMessage("Retry policy for operation 'test' exhausted; aborting execution")
.withCauseExactlyInstanceOf(IllegalStateException.class)
.satisfies(hasSuppressedExceptionsSatisfyingExactly(
suppressed1 -> assertThat(suppressed1).isExactlyInstanceOf(IOException.class),
suppressed2 -> assertThat(suppressed2).isExactlyInstanceOf(FileNotFoundException.class)
suppressed1 -> assertThat(suppressed1).isExactlyInstanceOf(FileNotFoundException.class),
suppressed2 -> assertThat(suppressed2).isExactlyInstanceOf(IOException.class)
));
// 3 = 1 initial invocation + 2 retry attempts
assertThat(invocationCount).hasValue(3);