Added unit test to detect bug # 14062.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137158 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e19abe9bc3
commit
9d3dc97c25
|
@ -68,7 +68,7 @@
|
|||
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
|
||||
* @author <a href="mailto:ridesmet@users.sourceforge.net">Ringo De Smet</a>
|
||||
* @author <a href="mailto:fredrik@westermarck.com>Fredrik Westermarck</a>
|
||||
* @version $Id: StringUtilsTest.java,v 1.8 2002/11/22 23:33:34 bayard Exp $
|
||||
* @version $Id: StringUtilsTest.java,v 1.9 2002/11/23 00:41:19 bayard Exp $
|
||||
*/
|
||||
public class StringUtilsTest extends TestCase
|
||||
{
|
||||
|
@ -186,6 +186,11 @@ public void testSplit()
|
|||
assertEquals("split(Object[], String, int) failed", expected[i],
|
||||
result[i]);
|
||||
}
|
||||
|
||||
result = StringUtils.split("one two three four five six", null, 2);
|
||||
assertEquals("split(Object[], null, int)[0] failed", "one", result[0]);
|
||||
assertEquals("split(Object[], null, int)[1] failed", "two", result[1]);
|
||||
assertEquals("split(Object[], null, int)[2] failed", "three four five six", result[2]);
|
||||
}
|
||||
|
||||
public void testReplaceFunctions()
|
||||
|
|
Loading…
Reference in New Issue