File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/codec/binary Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public void testEqualsString() {
9393
9494 @ Test
9595 public void testGetBytesIso8859_1 () throws UnsupportedEncodingException {
96- final String charsetName = "ISO-8859-1" ;
96+ final String charsetName = StandardCharsets . ISO_8859_1 . name () ;
9797 testGetBytesUnchecked (charsetName );
9898 final byte [] expected = STRING_FIXTURE .getBytes (charsetName );
9999 final byte [] actual = StringUtils .getBytesIso8859_1 (STRING_FIXTURE );
@@ -174,7 +174,7 @@ public void testNewStringBadEnc() {
174174
175175 @ Test
176176 public void testNewStringIso8859_1 () throws UnsupportedEncodingException {
177- final String charsetName = "ISO-8859-1" ;
177+ final String charsetName = StandardCharsets . ISO_8859_1 . name () ;
178178 testNewString (charsetName );
179179 final String expected = new String (BYTES_FIXTURE , charsetName );
180180 final String actual = StringUtils .newStringIso8859_1 (BYTES_FIXTURE );
You can’t perform that action at this time.
0 commit comments