Skip to content

Commit

Permalink
encode test input directly in unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
ceki committed Apr 20, 2019
1 parent f69891e commit 515d302
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -43,8 +43,8 @@ public TeeHttpServletResponseTest(String characterEncoding, String testString, b
@Parameterized.Parameters
public static Collection<?> inputValues() {
return Arrays.asList(new Object[][] {
{ "utf-8", "Gülcü", new byte[] { (byte) 0x47, (byte) 0xC3, (byte) 0xBC, (byte) 0x6C, (byte) 0x63, (byte) 0xC3, (byte) 0xBC } },
{ "iso-8859-1", "Gülcü", new byte[] { (byte) 0x47, (byte) 0xFC, (byte) 0x6C, (byte) 0x63, (byte) 0xFC } } });
{ "utf-8", "G\u00FClc\u00FC", new byte[] { (byte) 0x47, (byte) 0xC3, (byte) 0xBC, (byte) 0x6C, (byte) 0x63, (byte) 0xC3, (byte) 0xBC } },
{ "iso-8859-1", "G\u00FClc\u00FC", new byte[] { (byte) 0x47, (byte) 0xFC, (byte) 0x6C, (byte) 0x63, (byte) 0xFC } } });
}

@Test
Expand Down

0 comments on commit 515d302

Please sign in to comment.