org.apache.commons.codec
Class StringEncoderAbstractTest<T extends StringEncoder>

java.lang.Object
  extended by org.apache.commons.codec.StringEncoderAbstractTest<T>
Direct Known Subclasses:
BeiderMorseEncoderTest, Caverphone1Test, Caverphone2Test, ColognePhoneticTest, DoubleMetaphone2Test, DoubleMetaphoneTest, MatchRatingApproachEncoderTest, MetaphoneTest, NysiisTest, RefinedSoundexTest, SoundexTest

public abstract class StringEncoderAbstractTest<T extends StringEncoder>
extends Object

Version:
$Id: StringEncoderAbstractTest.html 889935 2013-12-11 05:05:13Z ggregory $

Field Summary
protected  T stringEncoder
           
 
Constructor Summary
StringEncoderAbstractTest()
           
 
Method Summary
 void checkEncoding(String expected, String source)
           
protected  void checkEncodings(String[][] data)
           
protected  void checkEncodingVariations(String expected, String[] data)
           
protected abstract  T createStringEncoder()
           
 T getStringEncoder()
           
 void testEncodeEmpty()
           
 void testEncodeNull()
           
 void testEncodeWithInvalidObject()
           
 void testLocaleIndependence()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stringEncoder

protected T extends StringEncoder stringEncoder
Constructor Detail

StringEncoderAbstractTest

public StringEncoderAbstractTest()
Method Detail

checkEncoding

public void checkEncoding(String expected,
                          String source)
                   throws EncoderException
Throws:
EncoderException

checkEncodings

protected void checkEncodings(String[][] data)
                       throws EncoderException
Throws:
EncoderException

checkEncodingVariations

protected void checkEncodingVariations(String expected,
                                       String[] data)
                                throws EncoderException
Throws:
EncoderException

createStringEncoder

protected abstract T createStringEncoder()

getStringEncoder

public T getStringEncoder()

testEncodeEmpty

public void testEncodeEmpty()
                     throws Exception
Throws:
Exception

testEncodeNull

public void testEncodeNull()
                    throws Exception
Throws:
Exception

testEncodeWithInvalidObject

public void testEncodeWithInvalidObject()
                                 throws Exception
Throws:
Exception

testLocaleIndependence

public void testLocaleIndependence()
                            throws Exception
Throws:
Exception


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