commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r795894 - /commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java
Date Mon, 20 Jul 2009 16:14:17 GMT
Author: bayard
Date: Mon Jul 20 16:14:16 2009
New Revision: 795894

URL: http://svn.apache.org/viewvc?rev=795894&view=rev
Log:
Improving code coverage for a couple of null cases

Modified:
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java?rev=795894&r1=795893&r2=795894&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java
Mon Jul 20 16:14:16 2009
@@ -249,6 +249,8 @@
             
     public void testSubstringBetween_StringStringString() {
         assertEquals(null, StringUtils.substringBetween(null, "", ""));
+        assertEquals(null, StringUtils.substringBetween("", null, ""));
+        assertEquals(null, StringUtils.substringBetween("", "", null));
         assertEquals("", StringUtils.substringBetween("", "", ""));
         assertEquals("", StringUtils.substringBetween("foo", "", ""));
         assertEquals(null, StringUtils.substringBetween("foo", "", "]"));



Mime
View raw message