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:
parent
4a30af0280
commit
84beb062c1
|
@ -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", "", "]"));
|
||||
|
|
Loading…
Reference in New Issue