mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polish contribution
See gh-35603
This commit is contained in:
+3
-3
@@ -108,14 +108,14 @@ class RequestLoggingFilterTests {
|
||||
|
||||
@Test
|
||||
void queryStringIncluded() throws Exception {
|
||||
request.setQueryString("booking=42&code=73&category=hotel&code=37&category=resort");
|
||||
request.setQueryString("booking=42&code=73&category=hotel&code=37&category=resort&ignore=enigma&code=99");
|
||||
filter.setIncludeQueryString(true);
|
||||
filter.setQueryParamPredicate(name -> !name.equals("code") && !name.equals("ignore"));
|
||||
|
||||
applyFilter();
|
||||
|
||||
assertThat(filter.beforeRequestMessage).contains("/hotels?booking=42&code=masked&category=hotel&category=resort");
|
||||
assertThat(filter.afterRequestMessage).contains("/hotels?booking=42&code=masked&category=hotel&category=resort");
|
||||
assertThat(filter.beforeRequestMessage).contains("/hotels?booking=42&code=masked&category=hotel&category=resort&ignore=masked");
|
||||
assertThat(filter.afterRequestMessage).contains("/hotels?booking=42&code=masked&category=hotel&category=resort&ignore=masked");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user