TestStringUtilspublic class TestStringUtils extends TestCase
Constructors Summary |
---|
public TestStringUtils(String name)
super(name);
|
Methods Summary |
---|
public static junit.framework.Test | suite()
return new TestSuite(TestStringUtils.class);
| public void | testStripEndWhite()
assertEquals(null, StringUtils.stripEnd(null, null));
assertEquals("", StringUtils.stripEnd("", null));
assertEquals("", StringUtils.stripEnd(" \r\n ", null));
assertEquals("abc", StringUtils.stripEnd("abc", null));
assertEquals(" abc", StringUtils.stripEnd(" abc", null));
assertEquals("abc", StringUtils.stripEnd("abc ", null));
assertEquals(" abc", StringUtils.stripEnd(" abc ", null));
| public void | testStripStartWhite()
assertEquals(null, StringUtils.stripStart(null, null));
assertEquals("", StringUtils.stripStart("", null));
assertEquals("", StringUtils.stripStart(" \r\n ", null));
assertEquals("abc", StringUtils.stripStart("abc", null));
assertEquals("abc", StringUtils.stripStart(" abc", null));
assertEquals("abc ", StringUtils.stripStart("abc ", null));
assertEquals("abc ", StringUtils.stripStart(" abc ", null));
| public void | testStripWhite()
assertEquals(null, StringUtils.strip(null, null));
assertEquals("", StringUtils.strip("", null));
assertEquals("", StringUtils.strip(" \r\n ", null));
assertEquals("abc", StringUtils.strip("abc", null));
assertEquals("abc", StringUtils.strip(" abc", null));
assertEquals("abc", StringUtils.strip("abc ", null));
assertEquals("abc", StringUtils.strip(" abc ", null));
|
|