public class MetaphoneTest extends StringEncoderAbstractTest<Metaphone>
stringEncoder
Constructor and Description |
---|
MetaphoneTest() |
Modifier and Type | Method and Description |
---|---|
void |
assertIsMetaphoneEqual(String source,
String[] matches) |
void |
assertMetaphoneEqual(String[][] pairs) |
protected Metaphone |
createStringEncoder() |
void |
testDiscardOfSCEOrSCIOrSCY() |
void |
testDiscardOfSilentGN() |
void |
testDiscardOfSilentHAfterG() |
void |
testExceedLength() |
void |
testIsMetaphoneEqual1() |
void |
testIsMetaphoneEqual2()
Matches computed from http://www.lanw.com/java/phonetic/default.htm
|
void |
testIsMetaphoneEqualAero()
Initial AE case.
|
void |
testIsMetaphoneEqualAlbert()
Initial A, not followed by an E case.
|
void |
testIsMetaphoneEqualGary()
Match data computed from http://www.lanw.com/java/phonetic/default.htm
|
void |
testIsMetaphoneEqualJohn()
Match data computed from http://www.lanw.com/java/phonetic/default.htm
|
void |
testIsMetaphoneEqualKnight()
Initial KN case.
|
void |
testIsMetaphoneEqualMary()
Match data computed from http://www.lanw.com/java/phonetic/default.htm
|
void |
testIsMetaphoneEqualParis()
Match data computed from http://www.lanw.com/java/phonetic/default.htm
|
void |
testIsMetaphoneEqualPeter()
Match data computed from http://www.lanw.com/java/phonetic/default.htm
|
void |
testIsMetaphoneEqualRay()
Match data computed from http://www.lanw.com/java/phonetic/default.htm
|
void |
testIsMetaphoneEqualSusan()
Match data computed from http://www.lanw.com/java/phonetic/default.htm
|
void |
testIsMetaphoneEqualWhite()
Initial WH case.
|
void |
testIsMetaphoneEqualWright()
Initial WR case.
|
void |
testIsMetaphoneEqualXalan()
Match data computed from http://www.lanw.com/java/phonetic/default.htm
|
void |
testMetaphone() |
void |
testPHTOF() |
void |
testSetMaxLengthWithTruncation() |
void |
testSHAndSIOAndSIAToX() |
void |
testTCH() |
void |
testTIOAndTIAToX() |
void |
testTranslateOfSCHAndCH() |
void |
testTranslateToJOfDGEOrDGIOrDGY() |
void |
testWhy()
Tests (CODEC-57) Metaphone.metaphone(String) returns an empty string when passed the word "why"
|
void |
testWordEndingInMB() |
void |
testWordsWithCIA() |
void |
validateFixture(String[][] pairs) |
checkEncoding, checkEncodings, checkEncodingVariations, getStringEncoder, testEncodeEmpty, testEncodeNull, testEncodeWithInvalidObject, testLocaleIndependence
public MetaphoneTest()
public void assertIsMetaphoneEqual(String source, String[] matches)
public void assertMetaphoneEqual(String[][] pairs)
protected Metaphone createStringEncoder()
createStringEncoder
in class StringEncoderAbstractTest<Metaphone>
public void testIsMetaphoneEqual1()
public void testIsMetaphoneEqual2()
public void testIsMetaphoneEqualAero()
public void testIsMetaphoneEqualWhite()
public void testIsMetaphoneEqualAlbert()
public void testIsMetaphoneEqualGary()
public void testIsMetaphoneEqualJohn()
public void testIsMetaphoneEqualKnight()
public void testIsMetaphoneEqualMary()
public void testIsMetaphoneEqualParis()
public void testIsMetaphoneEqualPeter()
public void testIsMetaphoneEqualRay()
public void testIsMetaphoneEqualSusan()
public void testIsMetaphoneEqualWright()
public void testIsMetaphoneEqualXalan()
public void testMetaphone()
public void testWordEndingInMB()
public void testDiscardOfSCEOrSCIOrSCY()
public void testWhy()
public void testWordsWithCIA()
public void testTranslateOfSCHAndCH()
public void testTranslateToJOfDGEOrDGIOrDGY()
public void testDiscardOfSilentHAfterG()
public void testDiscardOfSilentGN()
public void testPHTOF()
public void testSHAndSIOAndSIAToX()
public void testTIOAndTIAToX()
public void testTCH()
public void testExceedLength()
public void testSetMaxLengthWithTruncation()
public void validateFixture(String[][] pairs)
Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.