org.apache.commons.codec
Class StringEncoderAbstractTest

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

public abstract class StringEncoderAbstractTest
extends Object

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

Field Summary
protected  org.apache.commons.codec.StringEncoder 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  org.apache.commons.codec.StringEncoder createStringEncoder()
           
 org.apache.commons.codec.StringEncoder 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 org.apache.commons.codec.StringEncoder stringEncoder
Constructor Detail

StringEncoderAbstractTest

public StringEncoderAbstractTest()
Method Detail

checkEncoding

public void checkEncoding(String expected,
                          String source)
                   throws org.apache.commons.codec.EncoderException
Throws:
org.apache.commons.codec.EncoderException

checkEncodings

protected void checkEncodings(String[][] data)
                       throws org.apache.commons.codec.EncoderException
Throws:
org.apache.commons.codec.EncoderException

checkEncodingVariations

protected void checkEncodingVariations(String expected,
                                       String[] data)
                                throws org.apache.commons.codec.EncoderException
Throws:
org.apache.commons.codec.EncoderException

createStringEncoder

protected abstract org.apache.commons.codec.StringEncoder createStringEncoder()

getStringEncoder

public org.apache.commons.codec.StringEncoder 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.