mirror of
https://github.com/spring-projects/spring-security.git
synced 2026-01-17 11:56:48 +00:00
OAuth2AuthorizationRequestRedirectFilterTests attempt to validate the constructors throw IllegalArgumentException if an invalid argument is provided, but they are flawed because it is the relective code that is throwing the IllegalArgumentException due to imprecise type information. This changes the tests to no longer use unnecessary reflection and casts the types so that the type information is used to target the correct constructor. Closes gh-18507