org.apache.commons.codec.language
Class DoubleMetaphoneTest

java.lang.Object
  extended by org.apache.commons.codec.StringEncoderAbstractTest
      extended by org.apache.commons.codec.language.DoubleMetaphoneTest

public class DoubleMetaphoneTest
extends StringEncoderAbstractTest

Tests DoubleMetaphone.

Keep this file in UTF-8 encoding for proper Javadoc processing.

Version:
$Id: DoubleMetaphoneTest.html 889935 2013-12-11 05:05:13Z ggregory $
See Also:
"http://www.cuj.com/documents/s=8038/cuj0006philips/"

Field Summary
 
Fields inherited from class org.apache.commons.codec.StringEncoderAbstractTest
stringEncoder
 
Constructor Summary
DoubleMetaphoneTest()
           
 
Method Summary
 void assertDoubleMetaphoneAlt(String expected, String source)
          Tests encoding APIs in one place.
protected  org.apache.commons.codec.StringEncoder 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)
           
 
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

DoubleMetaphoneTest

public DoubleMetaphoneTest()
Method Detail

assertDoubleMetaphoneAlt

public void assertDoubleMetaphoneAlt(String expected,
                                     String source)
Tests encoding APIs in one place.


doubleMetaphoneEqualTest

public void doubleMetaphoneEqualTest(String[][] pairs,
                                     boolean useAlternate)

doubleMetaphoneNotEqualTest

public void doubleMetaphoneNotEqualTest(boolean alternate)

createStringEncoder

protected org.apache.commons.codec.StringEncoder createStringEncoder()
Specified by:
createStringEncoder in class StringEncoderAbstractTest

testDoubleMetaphone

public void testDoubleMetaphone()

testEmpty

public void testEmpty()

testSetMaxCodeLength

public void testSetMaxCodeLength()
Test setting maximum length


testIsDoubleMetaphoneEqualBasic

public void testIsDoubleMetaphoneEqualBasic()

testIsDoubleMetaphoneEqualExtended1

public void testIsDoubleMetaphoneEqualExtended1()
Example in the original article but failures in this Java impl:


testIsDoubleMetaphoneEqualExtended2

public void testIsDoubleMetaphoneEqualExtended2()

testIsDoubleMetaphoneEqualExtended3

public void testIsDoubleMetaphoneEqualExtended3()
Used to generate the MATCHES array and test possible matches from the FIXTURE array.


testIsDoubleMetaphoneEqualWithMATCHES

public void testIsDoubleMetaphoneEqualWithMATCHES()

testIsDoubleMetaphoneNotEqual

public void testIsDoubleMetaphoneNotEqual()

testCCedilla

public void testCCedilla()

testNTilde

public void testNTilde()

validateFixture

public void validateFixture(String[][] pairs)


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.