Skip to content

Commit

Permalink
Remove unnecessary test.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturobernalg committed Sep 24, 2024
1 parent 034fb48 commit 63a1a85
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,15 +300,4 @@ void testFormUrlEncodedWithoutCharset() throws Exception {
final String redirectedBody = "echotext=TEST%F6TEST";
Assertions.assertEquals(encodedBody, redirectedBody); // Ensure body stays the same after redirect
}

@Test
void testImplicitCharsetForApplicationJson() throws Exception {
// ContentType for application/json with implicitCharset = true
final ContentType contentType = ContentType.create("application/json", StandardCharsets.UTF_8, true);

// Check that the charset is not added to the toString() output
Assertions.assertEquals("application/json", contentType.toString());
// Check that the charset is still stored
Assertions.assertEquals(StandardCharsets.UTF_8, contentType.getCharset());
}
}

0 comments on commit 63a1a85

Please sign in to comment.