org.apache.commons.codec.language.bm
Class BeiderMorseEncoderTest

java.lang.Object
  extended by org.apache.commons.codec.StringEncoderAbstractTest
      extended by org.apache.commons.codec.language.bm.BeiderMorseEncoderTest

public class BeiderMorseEncoderTest
extends StringEncoderAbstractTest

Tests BeiderMorseEncoder.

Since:
1.6

Field Summary
 
Fields inherited from class org.apache.commons.codec.StringEncoderAbstractTest
stringEncoder
 
Constructor Summary
BeiderMorseEncoderTest()
           
 
Method Summary
protected  org.apache.commons.codec.StringEncoder createStringEncoder()
           
 void testAllChars()
          Tests we do not blow up.
 void testAsciiEncodeNotEmpty1Letter()
           
 void testAsciiEncodeNotEmpty2Letters()
           
 void testEncodeAtzNotEmpty()
           
 void testEncodeGna()
          Tests https://issues.apache.org/jira/browse/CODEC-125?focusedCommentId=13071566&page=com.atlassian.jira.plugin.system.issuetabpanels: comment-tabpanel#comment-13071566
 void testInvalidLangIllegalArgumentException()
           
 void testInvalidLangIllegalStateException()
           
 void testInvalidLanguageIllegalArgumentException()
           
 void testLongestEnglishSurname()
           
 void testNegativeIndexForRuleMatchIndexOutOfBoundsException()
           
 void testOOM()
           
 void testSetConcat()
           
 void testSetNameTypeAsh()
           
 void testSetRuleTypeExact()
           
 void testSetRuleTypeToRulesIllegalArgumentException()
           
 void testSpeedCheck()
          (Un)luckily, the worse performing test because of the data in TEST_CHARS
 void testSpeedCheck2()
           
 void testSpeedCheck3()
           
 
Methods inherited from class org.apache.commons.codec.StringEncoderAbstractTest
checkEncoding, checkEncodings, checkEncodingVariations, getStringEncoder, testEncodeEmpty, testEncodeNull, testEncodeWithInvalidObject, testLocaleIndependence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeiderMorseEncoderTest

public BeiderMorseEncoderTest()
Method Detail

createStringEncoder

protected org.apache.commons.codec.StringEncoder createStringEncoder()
Specified by:
createStringEncoder in class StringEncoderAbstractTest

testAllChars

public void testAllChars()
                  throws org.apache.commons.codec.EncoderException
Tests we do not blow up.

Throws:
org.apache.commons.codec.EncoderException

testAsciiEncodeNotEmpty1Letter

public void testAsciiEncodeNotEmpty1Letter()
                                    throws org.apache.commons.codec.EncoderException
Throws:
org.apache.commons.codec.EncoderException

testAsciiEncodeNotEmpty2Letters

public void testAsciiEncodeNotEmpty2Letters()
                                     throws org.apache.commons.codec.EncoderException
Throws:
org.apache.commons.codec.EncoderException

testEncodeAtzNotEmpty

public void testEncodeAtzNotEmpty()
                           throws org.apache.commons.codec.EncoderException
Throws:
org.apache.commons.codec.EncoderException

testEncodeGna

public void testEncodeGna()
                   throws org.apache.commons.codec.EncoderException
Tests https://issues.apache.org/jira/browse/CODEC-125?focusedCommentId=13071566&page=com.atlassian.jira.plugin.system.issuetabpanels: comment-tabpanel#comment-13071566

Throws:
org.apache.commons.codec.EncoderException

testInvalidLangIllegalArgumentException

public void testInvalidLangIllegalArgumentException()

testInvalidLangIllegalStateException

public void testInvalidLangIllegalStateException()

testInvalidLanguageIllegalArgumentException

public void testInvalidLanguageIllegalArgumentException()

testLongestEnglishSurname

public void testLongestEnglishSurname()
                               throws org.apache.commons.codec.EncoderException
Throws:
org.apache.commons.codec.EncoderException

testNegativeIndexForRuleMatchIndexOutOfBoundsException

public void testNegativeIndexForRuleMatchIndexOutOfBoundsException()

testOOM

public void testOOM()
             throws org.apache.commons.codec.EncoderException
Throws:
org.apache.commons.codec.EncoderException

testSetConcat

public void testSetConcat()

testSetNameTypeAsh

public void testSetNameTypeAsh()

testSetRuleTypeExact

public void testSetRuleTypeExact()

testSetRuleTypeToRulesIllegalArgumentException

public void testSetRuleTypeToRulesIllegalArgumentException()

testSpeedCheck

public void testSpeedCheck()
                    throws org.apache.commons.codec.EncoderException
(Un)luckily, the worse performing test because of the data in TEST_CHARS

Throws:
org.apache.commons.codec.EncoderException

testSpeedCheck2

public void testSpeedCheck2()
                     throws org.apache.commons.codec.EncoderException
Throws:
org.apache.commons.codec.EncoderException

testSpeedCheck3

public void testSpeedCheck3()
                     throws org.apache.commons.codec.EncoderException
Throws:
org.apache.commons.codec.EncoderException


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.