public class DoubleMetaphoneTest extends StringEncoderAbstractTest<DoubleMetaphone>
DoubleMetaphone
.
Keep this file in UTF-8 encoding for proper Javadoc processing.
stringEncoder
Constructor and Description |
---|
DoubleMetaphoneTest() |
Modifier and Type | Method and Description |
---|---|
void |
assertDoubleMetaphoneAlt(String expected,
String source)
Tests encoding APIs in one place.
|
protected DoubleMetaphone |
createStringEncoder() |
void |
doubleMetaphoneEqualTest(String[][] pairs,
boolean useAlternate) |
void |
doubleMetaphoneNotEqualTest(boolean alternate) |
void |
testCCedilla() |
void |
testDoubleMetaphone() |
void |
testEmpty() |
void |
testIsDoubleMetaphoneEqualBasic() |
void |
testIsDoubleMetaphoneEqualExtended1()
Example in the original article but failures in this Java impl:
|
void |
testIsDoubleMetaphoneEqualExtended2() |
void |
testIsDoubleMetaphoneEqualExtended3()
Used to generate the MATCHES array and test possible matches from the
FIXTURE array.
|
void |
testIsDoubleMetaphoneEqualWithMATCHES() |
void |
testIsDoubleMetaphoneNotEqual() |
void |
testNTilde() |
void |
testSetMaxCodeLength()
Test setting maximum length
|
void |
validateFixture(String[][] pairs) |
checkEncoding, checkEncodings, checkEncodingVariations, getStringEncoder, testEncodeEmpty, testEncodeNull, testEncodeWithInvalidObject, testLocaleIndependence
public DoubleMetaphoneTest()
public void assertDoubleMetaphoneAlt(String expected, String source)
public void doubleMetaphoneEqualTest(String[][] pairs, boolean useAlternate)
public void doubleMetaphoneNotEqualTest(boolean alternate)
protected DoubleMetaphone createStringEncoder()
createStringEncoder
in class StringEncoderAbstractTest<DoubleMetaphone>
public void testDoubleMetaphone()
public void testEmpty()
public void testSetMaxCodeLength()
public void testIsDoubleMetaphoneEqualBasic()
public void testIsDoubleMetaphoneEqualExtended1()
public void testIsDoubleMetaphoneEqualExtended2()
public void testIsDoubleMetaphoneEqualExtended3()
public void testIsDoubleMetaphoneEqualWithMATCHES()
public void testIsDoubleMetaphoneNotEqual()
public void testCCedilla()
public void testNTilde()
public void validateFixture(String[][] pairs)
Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.