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

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

public class BeiderMorseEncoderTest
extends StringEncoderAbstractTest<StringEncoder>

Tests BeiderMorseEncoder.

Since:
1.6

Field Summary
 
Fields inherited from class org.apache.commons.codec.StringEncoderAbstractTest
stringEncoder
 
Constructor Summary
BeiderMorseEncoderTest()
           
 
Method Summary
protected  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 StringEncoder createStringEncoder()
Specified by:
createStringEncoder in class StringEncoderAbstractTest<StringEncoder>

testAllChars

public void testAllChars()
                  throws EncoderException
Tests we do not blow up.

Throws:
EncoderException

testAsciiEncodeNotEmpty1Letter

public void testAsciiEncodeNotEmpty1Letter()
                                    throws EncoderException
Throws:
EncoderException

testAsciiEncodeNotEmpty2Letters

public void testAsciiEncodeNotEmpty2Letters()
                                     throws EncoderException
Throws:
EncoderException

testEncodeAtzNotEmpty

public void testEncodeAtzNotEmpty()
                           throws EncoderException
Throws:
EncoderException

testEncodeGna

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

Throws:
EncoderException

testInvalidLangIllegalArgumentException

public void testInvalidLangIllegalArgumentException()

testInvalidLangIllegalStateException

public void testInvalidLangIllegalStateException()

testInvalidLanguageIllegalArgumentException

public void testInvalidLanguageIllegalArgumentException()

testLongestEnglishSurname

public void testLongestEnglishSurname()
                               throws EncoderException
Throws:
EncoderException

testNegativeIndexForRuleMatchIndexOutOfBoundsException

public void testNegativeIndexForRuleMatchIndexOutOfBoundsException()

testOOM

public void testOOM()
             throws EncoderException
Throws:
EncoderException

testSetConcat

public void testSetConcat()

testSetNameTypeAsh

public void testSetNameTypeAsh()

testSetRuleTypeExact

public void testSetRuleTypeExact()

testSetRuleTypeToRulesIllegalArgumentException

public void testSetRuleTypeToRulesIllegalArgumentException()

testSpeedCheck

public void testSpeedCheck()
                    throws EncoderException
(Un)luckily, the worse performing test because of the data in TEST_CHARS

Throws:
EncoderException

testSpeedCheck2

public void testSpeedCheck2()
                     throws EncoderException
Throws:
EncoderException

testSpeedCheck3

public void testSpeedCheck3()
                     throws EncoderException
Throws:
EncoderException


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