You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2012/04/06 17:17:38 UTC
svn commit: r1310395 -
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/ByteOrderMarkTestCase.java
Author: ggregory
Date: Fri Apr 6 15:17:38 2012
New Revision: 1310395
URL: http://svn.apache.org/viewvc?rev=1310395&view=rev
Log:
Add missing tests.
Modified:
commons/proper/io/trunk/src/test/java/org/apache/commons/io/ByteOrderMarkTestCase.java
Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/ByteOrderMarkTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/ByteOrderMarkTestCase.java?rev=1310395&r1=1310394&r2=1310395&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/ByteOrderMarkTestCase.java (original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/ByteOrderMarkTestCase.java Fri Apr 6 15:17:38 2012
@@ -46,9 +46,11 @@ public class ByteOrderMarkTestCase exten
/** Tests that {@link ByteOrderMark#getCharsetName()} can be loaded as a {@link java.nio.charset.Charset} as advertised. */
public void testConstantCharsetNames() {
+ assertNotNull(Charset.forName(ByteOrderMark.UTF_8.getCharsetName()));
assertNotNull(Charset.forName(ByteOrderMark.UTF_16BE.getCharsetName()));
assertNotNull(Charset.forName(ByteOrderMark.UTF_16LE.getCharsetName()));
- assertNotNull(Charset.forName(ByteOrderMark.UTF_8.getCharsetName()));
+ assertNotNull(Charset.forName(ByteOrderMark.UTF_32BE.getCharsetName()));
+ assertNotNull(Charset.forName(ByteOrderMark.UTF_32LE.getCharsetName()));
}
/** Test {@link ByteOrderMark#length()} */