Package org.apache.ofbiz.base.util.test
Class StringUtilTests
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.ofbiz.base.test.GenericTestCaseBase
-
- org.apache.ofbiz.base.util.test.StringUtilTests
-
- All Implemented Interfaces:
junit.framework.Test
public class StringUtilTests extends GenericTestCaseBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
StringUtilTests.TestAppender
-
Constructor Summary
Constructors Constructor Description StringUtilTests(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
setUp()
protected void
tearDown()
void
testAddToNumberString()
void
testAppend()
void
testAppendTo()
void
testCleanHexString()
void
testCleanUpPathPrefix()
void
testCollapseCharacter()
void
testCollapseNewlines()
void
testCollapseSpaces()
void
testConvertChar()
void
testConvertOperatorSubstitutions()
void
testCreateMap()
void
testEncodeInt()
void
testFromHexString()
void
testInternString()
void
testJoin()
void
testMakeStringWrapper()
void
testMapToStr()
void
testPadNumberString()
void
testQuoteStrList()
void
testRemoveNonNumeric()
void
testRemoveNumeric()
void
testRemoveRegex()
void
testRemoveSpaces()
void
testReplaceString()
void
testSplit()
void
testStringUtil()
void
testStrToMap()
void
testToHexString()
void
testToList()
void
testToMap()
void
testToSet()
void
testWrapString()
-
Methods inherited from class org.apache.ofbiz.base.test.GenericTestCaseBase
assertComparison, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsIterable, assertEqualsIterable, assertEqualsIterable, assertEqualsIterable, assertFuture, assertNotEquals, assertNotEquals, assertStaticHelperClass, list, list, map, set, set, set, set, useAllMemory
-
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
-
-
-
Method Detail
-
setUp
protected void setUp() throws java.lang.Exception
- Overrides:
setUp
in classjunit.framework.TestCase
- Throws:
java.lang.Exception
-
tearDown
protected void tearDown() throws java.lang.Exception
- Overrides:
tearDown
in classjunit.framework.TestCase
- Throws:
java.lang.Exception
-
testStringUtil
public void testStringUtil() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testInternString
public void testInternString()
-
testReplaceString
public void testReplaceString()
-
testJoin
public void testJoin()
-
testSplit
public void testSplit()
-
testQuoteStrList
public void testQuoteStrList()
-
testStrToMap
public void testStrToMap()
-
testMapToStr
public void testMapToStr()
-
testToMap
public void testToMap()
-
testToList
public void testToList()
-
testToSet
public void testToSet()
-
testCreateMap
public void testCreateMap()
-
testCleanUpPathPrefix
public void testCleanUpPathPrefix()
-
testRemoveSpaces
public void testRemoveSpaces()
-
testToHexString
public void testToHexString()
-
testCleanHexString
public void testCleanHexString()
-
testFromHexString
public void testFromHexString()
-
testConvertChar
public void testConvertChar()
-
testEncodeInt
public void testEncodeInt()
-
testRemoveNonNumeric
public void testRemoveNonNumeric()
-
testRemoveNumeric
public void testRemoveNumeric()
-
testRemoveRegex
public void testRemoveRegex()
-
testAddToNumberString
public void testAddToNumberString()
-
testPadNumberString
public void testPadNumberString()
-
testConvertOperatorSubstitutions
public void testConvertOperatorSubstitutions()
-
testCollapseNewlines
public void testCollapseNewlines()
-
testCollapseSpaces
public void testCollapseSpaces()
-
testCollapseCharacter
public void testCollapseCharacter()
-
testWrapString
public void testWrapString()
-
testMakeStringWrapper
public void testMakeStringWrapper()
-
testAppendTo
public void testAppendTo()
-
testAppend
public void testAppend()
-
-