Skip to content

Commit

Permalink
Fixes #5845 - Use UTF-8 encoding for client basic auth if requested.
Browse files Browse the repository at this point in the history
Disable CheckStyle check so that the unicode sequence in the test matches that in realm.properties.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Dec 30, 2020
1 parent 655c2e3 commit 6535f2d
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -157,7 +157,8 @@ public void testBasicWithUTF8Password(Scenario scenario) throws Exception
{
startBasic(scenario, new EmptyServerHandler(), StandardCharsets.UTF_8);
URI uri = URI.create(scenario.getScheme() + "://localhost:" + connector.getLocalPort());
testAuthentication(scenario, new BasicAuthentication(uri, realm, "basic_utf8", "€"));
// @checkstyle-disable-check : AvoidEscapedUnicodeCharactersCheck
testAuthentication(scenario, new BasicAuthentication(uri, realm, "basic_utf8", "\u20AC"));
}

@ParameterizedTest
Expand Down

0 comments on commit 6535f2d

Please sign in to comment.