Author: ggregory Date: Wed Jul 27 13:23:51 2011 New Revision: 1151458 URL: http://svn.apache.org/viewvc?rev=1151458&view=rev Log: @Ignore test for https://issues.apache.org/jira/browse/CODEC-125?focusedCommentId=13071566&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13071566
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=1151458&r1=1151457&r2=1151458&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 Wed Jul 27 13:23:51 2011 @@ -21,8 +21,10 @@ import static org.junit.Assert.assertEqu import java.util.Collections; +import org.apache.commons.codec.EncoderException; import org.apache.commons.codec.StringEncoder; import org.apache.commons.codec.StringEncoderAbstractTest; +import org.junit.Ignore; import org.junit.Test; /** @@ -37,9 +39,19 @@ public class BeiderMorseEncoderTest exte return new BeiderMorseEncoder(); } - @Test(expected = IllegalStateException.class) - public void testInvalidLangIllegalStateException() { - Lang.loadFromResource("thisIsAMadeUpResourceName", Languages.instance(NameType.GENERIC)); + /** + * Tests https://issues.apache.org/jira/browse/CODEC-125?focusedCommentId=13071566&page=com.atlassian.jira.plugin.system.issuetabpanels: + * comment-tabpanel#comment-13071566 + * + * @throws EncoderException + */ + @Ignore + @Test + public void encodeGna() throws EncoderException { + BeiderMorseEncoder bmpm = new BeiderMorseEncoder(); + bmpm.setNameType(NameType.GENERIC); + bmpm.setRuleType(RuleType.APPROX); + bmpm.encode("gna"); } @Test(expected = IllegalArgumentException.class) @@ -47,6 +59,11 @@ public class BeiderMorseEncoderTest exte Rule.instance(NameType.GENERIC, RuleType.APPROX, "noSuchLanguage"); } + @Test(expected = IllegalStateException.class) + public void testInvalidLangIllegalStateException() { + Lang.loadFromResource("thisIsAMadeUpResourceName", Languages.instance(NameType.GENERIC)); + } + @Test(expected = IllegalArgumentException.class) public void testInvalidLanguageIllegalArgumentException() { Languages.instance("thereIsNoSuchLanguage");