commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1157962 - /commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java
Date Mon, 15 Aug 2011 19:35:21 GMT
Author: sebb
Date: Mon Aug 15 19:35:21 2011
New Revision: 1157962

URL: http://svn.apache.org/viewvc?rev=1157962&view=rev
Log:
CODEC-127 Convert to use Unicode except in comments
Also simplify test

Modified:
    commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java

Modified: commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java?rev=1157962&r1=1157961&r2=1157962&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java
(original)
+++ commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java
Mon Aug 15 19:35:21 2011
@@ -18,6 +18,7 @@
 package org.apache.commons.codec.language.bm;
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
 
 import org.apache.commons.codec.EncoderException;
 import org.apache.commons.codec.StringEncoder;
@@ -90,7 +91,8 @@ public class BeiderMorseEncoderTest exte
     @Test
     public void testEncodeAtzNotEmpty() throws EncoderException {
         BeiderMorseEncoder bmpm = createGenericApproxEncoder();
-        String[] names = { "ácz", "átz", "Ignácz", "Ignátz", "Ignác" };
+        //String[] names = { "ácz", "átz", "Ignácz", "Ignátz", "Ignác" };
+        String[] names = { "\u00e1cz", "\u00e1tz", "Ign\u00e1cz", "Ign\u00e1tz", "Ign\u00e1c"
};
         for (String name : names) {
             assertNotEmpty(bmpm, name);
         }
@@ -139,7 +141,7 @@ public class BeiderMorseEncoderTest exte
     public void testSetConcat() {
         BeiderMorseEncoder bmpm = new BeiderMorseEncoder();
         bmpm.setConcat(false);
-        assertEquals("Should be able to set concat to false", false, bmpm.isConcat());
+        assertFalse("Should be able to set concat to false", bmpm.isConcat());
     }
 
     @Test



Mime
View raw message