public class NysiisTest extends StringEncoderAbstractTest<Nysiis>
Nysiis
stringEncoder
Constructor and Description |
---|
NysiisTest() |
Modifier and Type | Method and Description |
---|---|
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() |
checkEncoding, checkEncodings, checkEncodingVariations, getStringEncoder, testEncodeEmpty, testEncodeNull, testEncodeWithInvalidObject, testLocaleIndependence
public NysiisTest()
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()
Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.