Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Feb 15, 2023
1 parent 5847454 commit 3e3f046
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static RequestMatcher requestTo(URI uri) {

/**
* Assert request query parameter values with the given Hamcrest matcher(s).
* <p> Note that if the queryParam value list is larger than the number of provided
* <p>Note that if the queryParam value list is larger than the number of provided
* {@code matchers}, extra values are considered acceptable.
* See {@link #queryParam(String, Matcher)} for a variant that takes a
* {@code Matcher} over the whole list of values.
Expand All @@ -134,7 +134,7 @@ public static RequestMatcher queryParam(String name, Matcher<? super String>...

/**
* Assert request query parameter values.
* <p> Note that if the queryParam value list is larger than {@code expectedValues},
* <p>Note that if the queryParam value list is larger than {@code expectedValues},
* extra values are considered acceptable.
* See {@link #queryParam(String, Matcher)} for a variant that takes a
* {@code Matcher} over the whole list of values.
Expand All @@ -152,12 +152,12 @@ public static RequestMatcher queryParam(String name, String... expectedValues) {

/**
* Assert request query parameter, matching on the whole {@code List} of values.
* <p> This can be used to check that the list has at least one value matching a
* <p>This can be used to check that the list has at least one value matching a
* criteria ({@link Matchers#hasItem(Matcher)}), or that every value in the list
* matches a common criteria ({@link Matchers#everyItem(Matcher)}), or that each
* value in the list matches its corresponding dedicated criteria
* ({@link Matchers#contains(Matcher[])}, and more.
* @param name the name of the queryParam to consider
* @param name the name of the query parameter to consider
* @param matcher the matcher to apply to the whole list of values for that header
* @since 6.0.5
*/
Expand Down Expand Up @@ -192,7 +192,7 @@ private static void assertValueCount(

/**
* Assert request header values with the given Hamcrest matcher(s).
* <p> Note that if the header's value list is larger than the number of provided
* <p>Note that if the header's value list is larger than the number of provided
* {@code matchers}, extra values are considered acceptable.
* See {@link #header(String, Matcher)} for a variant that takes a {@code Matcher}
* over the whole list of values.
Expand All @@ -212,7 +212,7 @@ public static RequestMatcher header(String name, Matcher<? super String>... matc

/**
* Assert request header values.
* <p> Note that if the header's value list is larger than {@code expectedValues},
* <p>Note that if the header's value list is larger than {@code expectedValues},
* extra values are considered acceptable.
* See {@link #header(String, Matcher)} for a variant that takes a {@code Matcher}
* over the whole list of values.
Expand All @@ -231,12 +231,12 @@ public static RequestMatcher header(String name, String... expectedValues) {

/**
* Assert request header, matching on the whole {@code List} of values.
* <p> This can be used to check that the list has at least one value matching a
* <p>This can be used to check that the list has at least one value matching a
* criteria ({@link Matchers#hasItem(Matcher)}), or that every value in the list
* matches a common criteria ({@link Matchers#everyItem(Matcher)}), or that each
* value in the list matches its corresponding dedicated criteria
* ({@link Matchers#contains(Matcher[])}, and more.
* @param name the name of the header to consider
* @param name the name of the request header to consider
* @param matcher the matcher to apply to the whole list of values for that header
* @since 6.0.5
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ static final class EncodedResource extends AbstractResource implements HttpResou
this.encoded = original.createRelative(original.getFilename() + extension);
}


@Override
public boolean exists() {
return this.encoded.exists();
Expand Down

0 comments on commit 3e3f046

Please sign in to comment.