-
Notifications
You must be signed in to change notification settings - Fork 40.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@WebFluxTest Doesn't Import the ErrorWebFluxAutoConfiguration #16258
Labels
status: superseded
An issue that has been superseded by another
Comments
spring-projects-issues
added
the
status: waiting-for-triage
An issue we've not yet triaged
label
Mar 19, 2019
Well spotted. This seems like a bug to me, particularly as |
bclozel
added
type: bug
A general bug
and removed
status: waiting-for-triage
An issue we've not yet triaged
labels
Mar 19, 2019
Yes, we should align with our existing MVC setup here. |
@bclozel @wilkinsona May I provide a PR to fix that? |
@alimate Yes, please. That would be much appreciated. |
This was referenced Mar 19, 2019
Closing in favor of PR #16266. |
mbhave
added
status: superseded
An issue that has been superseded by another
and removed
type: bug
A general bug
labels
Mar 22, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Synopsis
As I was experimenting with the
@WebFluxTest
s to test Reactive controllers, I noticed that the provided test auto-configurations do not import the defaultErrorWebExceptionHandler
, so the following test would fail:This can be easily fixed just by importing the
ErrorWebFluxAutoConfiguration
:Suggestion
Although the problem is so easy to fix, that'd be great if we import the default auto-configuration automatically. For example by adding an
AutoConfigureErrorWebFlux
annotation.Related Issues
Apparently supporting
WebExceptionHandler
s was added in #13627 but the default auto-configuration is missing from theWebFluxTest
.The text was updated successfully, but these errors were encountered: