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

WebTestClient - expecting lack of header [SPR-16379] #20925

Closed
spring-projects-issues opened this issue Jan 14, 2018 · 0 comments
Closed

WebTestClient - expecting lack of header [SPR-16379] #20925

spring-projects-issues opened this issue Jan 14, 2018 · 0 comments
Labels
in: test Issues in the test module status: duplicate A duplicate of another issue type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jan 14, 2018

Maciej Szarlinski opened SPR-16379 and commented

EDIT: it has been added in 5.0.3 already

There is no way to verify whether response header is missing using WebTestClient, apparently HeaderAssertions has no suitable method for that.

It would be nice to enhance HeaderAssertions API adding doesNotContain(headerName) method.


Issue Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test Issues in the test module status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant