Affects: All versions


ServletContext can be mocked using MockServletContext, and ServletConfig can be mocked using MockServletConfig.

Could you please introduce a mock for jakarta.servlet.ServletRegistration?

I will provide a PR if you are in favor that.

Comment From: sbrannen

Hi @enexusde,

Can you please share with us your concrete use case for a mock of ServletRegistration?

Please note as well that Spring's MockServletContext does not support ServletRegistration, and we do not currently have plans to change that.

Regards,

Sam

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.