Improving code coverage for a couple of null cases

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795894 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2009-07-20 16:14:16 +00:00
parent 4a30af0280
commit 84beb062c1
1 changed files with 2 additions and 0 deletions

View File

@ -249,6 +249,8 @@ public class StringUtilsSubstringTest extends TestCase {
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", "", "]"));