commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang StringUtilsTest.java
Date Sat, 23 Nov 2002 00:41:19 GMT
bayard      2002/11/22 16:41:19

  Modified:    lang/src/test/org/apache/commons/lang StringUtilsTest.java
  Log:
  Added unit test to detect bug # 14062.
  
  Revision  Changes    Path
  1.9       +6 -1      jakarta-commons/lang/src/test/org/apache/commons/lang/StringUtilsTest.java
  
  Index: StringUtilsTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/StringUtilsTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- StringUtilsTest.java	22 Nov 2002 23:33:34 -0000	1.8
  +++ StringUtilsTest.java	23 Nov 2002 00:41:19 -0000	1.9
  @@ -186,6 +186,11 @@
               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()
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message