|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.codec.StringEncoderAbstractTest<Nysiis> org.apache.commons.codec.language.NysiisTest
public class NysiisTest
Tests Nysiis
Field Summary |
---|
Fields inherited from class org.apache.commons.codec.StringEncoderAbstractTest |
---|
stringEncoder |
Constructor Summary | |
---|---|
NysiisTest()
|
Method Summary | |
---|---|
protected Nysiis |
createStringEncoder()
|
void |
testBran()
|
void |
testCap()
|
void |
testDad()
|
void |
testDan()
|
void |
testDropBy()
Tests data gathered from around the internet. |
void |
testFal()
|
void |
testOthers()
Tests data gathered from around the internets. |
void |
testRule1()
Tests rule 1: Translate first characters of name: MAC → MCC, KN → N, K → C, PH, PF → FF, SCH → SSS |
void |
testRule2()
Tests rule 2: Translate last characters of name: EE → Y, IE → Y, DT, RT, RD, NT, ND → D |
void |
testRule4Dot1()
Tests rule 4.1: EV → AF else A, E, I, O, U → A |
void |
testRule4Dot2()
Tests rule 4.2: Q → G, Z → S, M → N |
void |
testRule5()
Tests rule 5: If last character is S, remove it. |
void |
testRule6()
Tests rule 6: If last characters are AY, replace with Y. |
void |
testRule7()
Tests rule 7: If last character is A, remove it. |
void |
testSnad()
|
void |
testSnat()
|
void |
testSpecialBranches()
|
void |
testTranan()
|
void |
testTrueVariant()
|
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 |
---|
public NysiisTest()
Method Detail |
---|
protected Nysiis createStringEncoder()
createStringEncoder
in class StringEncoderAbstractTest<Nysiis>
public void testBran()
public void testCap()
public void testDad()
public void testDan()
public void testDropBy() throws EncoderException
EncoderException
public void testFal()
public void testOthers() throws EncoderException
EncoderException
public void testRule1() throws EncoderException
EncoderException
public void testRule2() throws EncoderException
EncoderException
public void testRule4Dot1() throws EncoderException
EncoderException
public void testRule4Dot2() throws EncoderException
EncoderException
public void testRule5() throws EncoderException
EncoderException
public void testRule6() throws EncoderException
EncoderException
public void testRule7() throws EncoderException
EncoderException
public void testSnad()
public void testSnat()
public void testSpecialBranches()
public void testTranan()
public void testTrueVariant()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |