|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.opencms.i18n.TestCmsEncoder
public class TestCmsEncoder
Tests for the CmsEncoder.
Constructor Summary | |
---|---|
TestCmsEncoder()
|
Method Summary | |
---|---|
void |
testDecodeHtmlEntities()
|
void |
testDecodeUmlauts()
Tests decoding german "umlaute". |
void |
testDoubleEncoding()
Tests wether two subsequent calls to
lead to an expected result and ensures that the 2nd call does not
do any further modifications. |
void |
testEncodeForHtml()
|
void |
testEncodeNonIsoEntities()
|
void |
testEncodePercent()
Encodes a single '%' and ensures that it is transformed. |
void |
testLookupEncoding()
|
void |
testParamEncoding()
Tests the encoding of a single parameter. |
void |
testParameterEncoding()
Tests encoding of parameters. |
void |
testRecursiveDecodingOfDoubleEncoded()
Tests wether two subsequent calls to
are undone by onde decode call (the 2nd encode call must not modify anything. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestCmsEncoder()
Method Detail |
---|
public void testDecodeHtmlEntities()
CmsEncoder.decodeHtmlEntities(String, String)
public void testEncodeNonIsoEntities()
CmsEncoder.encodeJavaEntities(String, String)
public void testDecodeUmlauts()
public void testDoubleEncoding()
CmsEncoder.escapeWBlanks(String, String)
lead to an expected result and ensures that the 2nd call does not
do any further modifications.
public void testEncodeForHtml()
CmsEncoder.encodeHtmlEntities(String, String)
public void testParamEncoding()
public void testEncodePercent()
public void testLookupEncoding()
CmsEncoder.lookupEncoding(String, String)
public void testParameterEncoding()
public void testRecursiveDecodingOfDoubleEncoded()
CmsEncoder.escapeWBlanks(String, String)
are undone by onde decode call (the 2nd encode call must not modify anything.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |