|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.codec.StringEncoderAbstractTest 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 org.apache.commons.codec.StringEncoder |
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 org.apache.commons.codec.StringEncoder createStringEncoder()
createStringEncoder
in class StringEncoderAbstractTest
public void testBran() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testCap() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testDad() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testDan() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testDropBy() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testFal() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testOthers() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testRule1() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testRule2() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testRule4Dot1() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testRule4Dot2() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testRule5() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testRule6() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testRule7() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testSnad() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testSnat() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testSpecialBranches() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testTranan() throws org.apache.commons.codec.EncoderException
org.apache.commons.codec.EncoderException
public void testTrueVariant()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |