Skip to content
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

Support WebExceptionHandler in @WebFluxTest #13627

Closed
hantsy opened this issue Jul 1, 2018 · 1 comment
Closed

Support WebExceptionHandler in @WebFluxTest #13627

hantsy opened this issue Jul 1, 2018 · 1 comment
Labels
type: enhancement A general enhancement
Milestone

Comments

@hantsy
Copy link

hantsy commented Jul 1, 2018

@WebMvcTest worked well with @ExceptionHandler. But @WebFluxTest ignores it at all and throw exceptions in the background, I created an post on stackoverflow before to describe it.

https://stackoverflow.com/questions/48162730/how-to-test-exception-with-webfluxtest

related codes: https://github.com/hantsy/angular-spring-reactive-sample/blob/master/server/src/test/java/com/example/demo/PostControllerTest.java#L112-L123

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 1, 2018
@wilkinsona wilkinsona changed the title @WebfluxTest dose not work with @RestExceptionHandler @WebFluxTest dose not work with @RestExceptionHandler Jul 2, 2018
@wilkinsona wilkinsona changed the title @WebFluxTest dose not work with @RestExceptionHandler @WebFluxTest dose not work with WebExceptionHandler Jul 2, 2018
@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 4, 2018
@philwebb philwebb added this to the Backlog milestone Jul 4, 2018
@wilkinsona wilkinsona changed the title @WebFluxTest dose not work with WebExceptionHandler @WebFluxTest does not work with WebExceptionHandler Aug 13, 2018
@wilkinsona wilkinsona changed the title @WebFluxTest does not work with WebExceptionHandler Support WebExceptionHandler in @WebFluxTest Aug 13, 2018
@mbhave mbhave modified the milestones: Backlog, 2.1.0.M3 Aug 27, 2018
@mbhave mbhave closed this as completed in f3fa952 Aug 27, 2018
@alimate
Copy link
Contributor

alimate commented Mar 19, 2019

@mbhave Does the WebFluxTest support the exception handlers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

5 participants