commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1152066 - /commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java
Date Fri, 29 Jul 2011 01:04:47 GMT
Author: ggregory
Date: Fri Jul 29 01:04:46 2011
New Revision: 1152066

URL: http://svn.apache.org/viewvc?rev=1152066&view=rev
Log:
Add @Ignore testEncodeAtz() from https://issues.apache.org/jira/browse/CODEC-125?focusedCommentId=13072496&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13072496

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=1152066&r1=1152065&r2=1152066&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
Fri Jul 29 01:04:46 2011
@@ -24,6 +24,8 @@ import java.util.Random;
 import org.apache.commons.codec.EncoderException;
 import org.apache.commons.codec.StringEncoder;
 import org.apache.commons.codec.StringEncoderAbstractTest;
+import org.junit.Assert;
+import org.junit.Ignore;
 import org.junit.Test;
 
 /**
@@ -38,6 +40,16 @@ public class BeiderMorseEncoderTest exte
         return new BeiderMorseEncoder();
     }
 
+    @Ignore
+    @Test
+    public void testEncodeAtz() throws EncoderException {
+        BeiderMorseEncoder bmpm = new BeiderMorseEncoder();
+        bmpm.setNameType(NameType.GENERIC);
+        bmpm.setRuleType(RuleType.APPROX);
+        Assert.assertFalse(bmpm.encode("ácz").equals(""));
+        Assert.assertFalse(bmpm.encode("átz").equals(""));
+    }
+
     /**
      * Tests https://issues.apache.org/jira/browse/CODEC-125?focusedCommentId=13071566&page=com.atlassian.jira.plugin.system.issuetabpanels:
      * comment-tabpanel#comment-13071566



Mime
View raw message