Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-krueger committed Mar 20, 2024
1 parent 6964fd8 commit 4c2d374
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public default boolean hasProperty(String name) {
* (missing comma), or the value {@code no - store} (whitespace within value).
*
* @param name the message header.
* @param valueSeparatorRegex String or regular expression that separates the header value into single values.
* @param valueSeparatorRegex Regular expression that separates the header value into single values.
* {@code null} does not split.
* @param valuePredicate value must fulfil this predicate.
* @return {@code true} if and only if a header with the given name exists, having either a whitespace-trimmed value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public interface ClientResponseContext {
* (missing comma), or the value {@code no - store} (whitespace within value).
*
* @param name the message header.
* @param valueSeparatorRegex String or regular expression that separates the header value into single values.
* @param valueSeparatorRegex Regular expression that separates the header value into single values.
* {@code null} does not split.
* @param valuePredicate value must fulfil this predicate.
* @return {@code true} if and only if a header with the given name exists, having either a whitespace-trimmed value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ protected void checkFilterContext(ClientRequestContext context) throws Fault {
//Shouldn't find first value when separator character is incorrect
assertFalse(context.containsHeaderString("header1", ";", "value1"::equalsIgnoreCase));
//Test regular expression
assertFalse(context.containsHeaderString("header1", "; | ,", "value2"::equalsIgnoreCase));
assertFalse(context.containsHeaderString("header1", ";|,", "value2"::equalsIgnoreCase));
//White space in value not trimmed
assertFalse(context.containsHeaderString("header1", "whitespace"::equalsIgnoreCase));
//Multiple character separator
Expand All @@ -904,7 +904,7 @@ protected void checkFilterContext(ClientRequestContext context) throws Fault {
Response response = invoke(invocation);

String entity = response.readEntity(String.class);
assertTrue(entity.contains("Sucess"));
assertTrue(entity.contains("Success"));
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ protected void checkFilterContext(ClientRequestContext requestContext,
//Shouldn't find first value when separator character is incorrect
assertFalse(responseContext.containsHeaderString("header1", ";", "value1"::equalsIgnoreCase));
//Test regular expression
assertFalse(responseContext.containsHeaderString("header1", "; | ,", "value2"::equalsIgnoreCase));
assertFalse(responseContext.containsHeaderString("header1", ";|,", "value2"::equalsIgnoreCase));
//White space in value not trimmed
assertFalse(responseContext.containsHeaderString("header1", "whitespace"::equalsIgnoreCase));
//Multiple character separator
Expand Down

0 comments on commit 4c2d374

Please sign in to comment.