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

Warn users that WebTestClient with MockMvc is not supported #10900

Open
sjohnr opened this issue Feb 22, 2022 · 1 comment
Open

Warn users that WebTestClient with MockMvc is not supported #10900

sjohnr opened this issue Feb 22, 2022 · 1 comment
Assignees
Labels
in: test An issue in spring-security-test type: enhancement A general enhancement
Milestone

Comments

@sjohnr
Copy link
Member

sjohnr commented Feb 22, 2022

WebTestClient + MockMvc is not currently supported. If possible, we should warn users with an IllegalStateException that this is not supported when the WebTestClient is set up. A note should also be added to the documentation.

Related gh-10841

@sjohnr sjohnr added in: test An issue in spring-security-test type: enhancement A general enhancement labels Feb 22, 2022
@sjohnr
Copy link
Member Author

sjohnr commented Mar 1, 2022

See this comment for a possible workaround and note. If a workaround exists and works as intended, this issue could focus on updating documentation.

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

No branches or pull requests

2 participants