Added another test to show that I can pass in delimiters that don't appear

in the string I'm stripping.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136935 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2002-07-19 04:05:57 +00:00
parent e488b7b892
commit f0a5f0e8aa
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,7 @@ import junit.textui.TestRunner;
*
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
* @author <a href="mailto:ridesmet@users.sourceforge.net">Ringo De Smet</a>
* @version $Id: StringUtilsTrimEmptyTest.java,v 1.2 2002/07/19 04:04:45 bayard Exp $
* @version $Id: StringUtilsTrimEmptyTest.java,v 1.3 2002/07/19 04:05:57 bayard Exp $
*/
public class StringUtilsTrimEmptyTest extends TestCase {
private static final String FOO = "foo";
@ -161,6 +161,7 @@ public class StringUtilsTrimEmptyTest extends TestCase {
assertEquals(FOO, StringUtils.strip(". . . . ."+FOO+". . ", " ."));
assertEquals("-."+FOO, StringUtils.strip(". . . . -."+FOO+". . ", " ."));
assertEquals(FOO, StringUtils.strip(".. .."+FOO+".. ", " ."));
assertEquals(FOO, StringUtils.strip(".. .."+FOO+".. ", "+= ."));
// test stripAll method, merely an array version of the above strip
String[] empty = new String[0];