Files
spring-framework/spring-context
Tim te Beek 11d2c457e7 Fix ignored target assertions in ConcurrencyLimitTests
The rejection tests verified the exception target with
`satisfies(ex -> assertThat(ex.getTarget() == target))`, which never
asserts anything as the boolean `assertThat` is not followed by a
check.

Assert the target via `extracting(...).isSameAs(...)` instead, against
the proxy, since the concurrency throttle is applied at the AOP proxy
level and the proxy is what gets passed as the exception target.

Closes gh-37411

Signed-off-by: Tim te Beek <tim@moderne.io>
2026-10-07 11:50:12 +02:00
..