File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/io Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,9 +46,11 @@ public void testCharsetName() {
4646
4747 /** Tests that {@link ByteOrderMark#getCharsetName()} can be loaded as a {@link java.nio.charset.Charset} as advertised. */
4848 public void testConstantCharsetNames () {
49+ assertNotNull (Charset .forName (ByteOrderMark .UTF_8 .getCharsetName ()));
4950 assertNotNull (Charset .forName (ByteOrderMark .UTF_16BE .getCharsetName ()));
5051 assertNotNull (Charset .forName (ByteOrderMark .UTF_16LE .getCharsetName ()));
51- assertNotNull (Charset .forName (ByteOrderMark .UTF_8 .getCharsetName ()));
52+ assertNotNull (Charset .forName (ByteOrderMark .UTF_32BE .getCharsetName ()));
53+ assertNotNull (Charset .forName (ByteOrderMark .UTF_32LE .getCharsetName ()));
5254 }
5355
5456 /** Test {@link ByteOrderMark#length()} */
You can’t perform that action at this time.
0 commit comments