You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MockServerWebExchange does not have an ApplicationContext and the constructor that accepts it in the base class isn't visible, so the only workaround is to create your own DefaultServerWebExchange and override getApplicationContext().
Spring Security requires the ApplicationContext, so they apparently have this workaround in their test code, but it would be useful to share it.
The text was updated successfully, but these errors were encountered:
rstoyanchev
changed the title
MockServerWebExchange does not have an ApplicationContext
MockServerWebExchange does not allow setting the ApplicationContext on the base class
Mar 14, 2025
MockServerWebExchange
does not have anApplicationContext
and the constructor that accepts it in the base class isn't visible, so the only workaround is to create your ownDefaultServerWebExchange
and overridegetApplicationContext()
.Spring Security requires the
ApplicationContext
, so they apparently have this workaround in their test code, but it would be useful to share it.The text was updated successfully, but these errors were encountered: