mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 05:09:13 +00:00
Fix common typos and grammatical mistakes
Closes gh-36471
This commit is contained in:
@@ -76,8 +76,8 @@ class HttpHeadersTests {
|
||||
void writableHttpHeadersUnwrapsMultiple() {
|
||||
HttpHeaders originalExchangeHeaders = HttpHeaders.readOnlyHttpHeaders(new HttpHeaders());
|
||||
HttpHeaders firewallHeaders = new HttpHeaders(originalExchangeHeaders);
|
||||
HttpHeaders writeable = new HttpHeaders(firewallHeaders);
|
||||
writeable.setContentType(MediaType.APPLICATION_JSON);
|
||||
HttpHeaders writable = new HttpHeaders(firewallHeaders);
|
||||
writable.setContentType(MediaType.APPLICATION_JSON);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -843,10 +843,10 @@ class PathPatternTests {
|
||||
parse("/hotels/{hotel}/booking"))).isEqualTo(1);
|
||||
|
||||
assertThat(comparator.compare(
|
||||
parse("/hotels/{hotel}/bookings/{booking}/cutomers/{customer}"),
|
||||
parse("/hotels/{hotel}/bookings/{booking}/customers/{customer}"),
|
||||
parse("/**"))).isEqualTo(-1);
|
||||
assertThat(comparator.compare(parse("/**"),
|
||||
parse("/hotels/{hotel}/bookings/{booking}/cutomers/{customer}"))).isEqualTo(1);
|
||||
parse("/hotels/{hotel}/bookings/{booking}/customers/{customer}"))).isEqualTo(1);
|
||||
assertThat(comparator.compare(parse("/**"), parse("/**"))).isEqualTo(0);
|
||||
|
||||
assertThat(comparator.compare(parse("/hotels/{hotel}"), parse("/hotels/*"))).isEqualTo(-1);
|
||||
@@ -861,10 +861,10 @@ class PathPatternTests {
|
||||
|
||||
// SPR-6741
|
||||
assertThat(comparator.compare(
|
||||
parse("/hotels/{hotel}/bookings/{booking}/cutomers/{customer}"),
|
||||
parse("/hotels/{hotel}/bookings/{booking}/customers/{customer}"),
|
||||
parse("/hotels/**"))).isEqualTo(-1);
|
||||
assertThat(comparator.compare(parse("/hotels/**"),
|
||||
parse("/hotels/{hotel}/bookings/{booking}/cutomers/{customer}"))).isEqualTo(1);
|
||||
parse("/hotels/{hotel}/bookings/{booking}/customers/{customer}"))).isEqualTo(1);
|
||||
assertThat(comparator.compare(parse("/hotels/foo/bar/**"),
|
||||
parse("/hotels/{hotel}"))).isEqualTo(1);
|
||||
assertThat(comparator.compare(parse("/hotels/{hotel}"),
|
||||
|
||||
Reference in New Issue
Block a user