|
||||||||
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.util.TestCmsStringUtil
public class TestCmsStringUtil
Test cases for CmsStringUtil
.
Constructor Summary | |
---|---|
TestCmsStringUtil(String arg0)
Default JUnit constructor. |
Method Summary | |
---|---|
void |
testCmsContentReplacement()
Tests content replacement during import. |
void |
testCombined()
Combined tests. |
void |
testComplexPatternForImport()
Tests for complext import patterns. |
void |
testEscapePattern()
Tests for the escape patterns. |
void |
testExtractHtmlBody()
Tests the body tag extraction. |
void |
testExtractXmlEncoding()
Tests the xml encoding extraction. |
void |
testFormatResourceName()
Tests for the resource name formatting. |
void |
testGetCommonPrefixPath()
Test for getting the common prefix of two paths. |
void |
testGetRelativeSubPath()
Test for the getRelativeSubPath utility method. |
void |
testLastIndexOf()
Test case for CmsStringUtil.lastIndexOf(String, char[]) method. |
void |
testLine()
Further tests. |
void |
testSplitCharDelimiter()
Tests . |
void |
testSplitStringDelimiter()
Tests . |
void |
testSubstitute()
Tests the basic String substitution. |
void |
testTrimToSize()
Test case for CmsStringUtil.trimToSize(String, int) method. |
void |
testTrimToSizeText()
Test case for CmsStringUtil.trimToSize(String, int, int, String) . |
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 TestCmsStringUtil(String arg0)
arg0
- JUnit parametersMethod Detail |
---|
public void testCmsContentReplacement()
public void testCombined()
public void testComplexPatternForImport()
public void testEscapePattern()
public void testExtractHtmlBody()
public void testExtractXmlEncoding()
public void testFormatResourceName()
public void testGetCommonPrefixPath()
public void testGetRelativeSubPath() throws Exception
Exception
public void testLastIndexOf()
CmsStringUtil.lastIndexOf(String, char[])
method.
public void testLine()
public void testSplitCharDelimiter()
CmsStringUtil.splitAsArray(String, char)
.
public void testSplitStringDelimiter()
CmsStringUtil.splitAsArray(String, String)
.
public void testSubstitute()
public void testTrimToSize()
CmsStringUtil.trimToSize(String, int)
method.
public void testTrimToSizeText()
CmsStringUtil.trimToSize(String, int, int, String)
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |