-
Notifications
You must be signed in to change notification settings - Fork 41k
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
Add @WebEndpointTest for testing custom actuator web points #11399
Comments
@manderson23 can you expand on what you are expecting exactly? Is that an web-specific test style where you could use We use a custom rule to make sure each endpoint runs consistently with MVC, WebFlux and Jersery. I am not sure that's what you're after. |
@snicoll OK in my case I'm MVC only so I'd be happy to make my own rule. I did look at your tests and seen the custom rule there. Would it be feasible and/or useful to make that part of the public API? |
I'm reluctant to make |
We discussed this a bit more today, and our feeling is that you should either just unit test your endpoint and trust the infrastructure to do what it claims to do, or you can create a full-blown integration test and call the endpoint using |
It would be convenient if, similar to
@WebMvcTest
, there was a@WebEndpointTest
annotation to support testing custom@WebEndpoint
implementations.The text was updated successfully, but these errors were encountered: