public abstract class StringEncoderAbstractTest<T extends StringEncoder> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected T |
stringEncoder |
| Constructor and Description |
|---|
StringEncoderAbstractTest() |
| Modifier and Type | Method and Description |
|---|---|
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() |
protected T extends StringEncoder stringEncoder
public StringEncoderAbstractTest()
public void checkEncoding(String expected, String source) throws EncoderException
EncoderExceptionprotected void checkEncodings(String[][] data) throws EncoderException
EncoderExceptionprotected void checkEncodingVariations(String expected, String[] data) throws EncoderException
EncoderExceptionprotected abstract T createStringEncoder()
public T getStringEncoder()
public void testEncodeEmpty() throws Exception
Exceptionpublic void testEncodeNull() throws Exception
Exceptionpublic void testEncodeWithInvalidObject() throws Exception
Exceptionpublic void testLocaleIndependence() throws Exception
ExceptionCopyright © 2002–2013 The Apache Software Foundation. All rights reserved.