mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
@@ -148,4 +148,16 @@ public class CharSequenceUtilTest {
|
||||
Assert.assertEquals("ABCde", CharSequenceUtil.removeSuffixIgnoreCase("ABCde", "ABCdef"));
|
||||
Assert.assertNull(CharSequenceUtil.removeSuffixIgnoreCase(null, "ABCdef"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void trimToNullTest(){
|
||||
String a = " ";
|
||||
Assert.assertNull(CharSequenceUtil.trimToNull(a));
|
||||
|
||||
a = "";
|
||||
Assert.assertNull(CharSequenceUtil.trimToNull(a));
|
||||
|
||||
a = null;
|
||||
Assert.assertNull(CharSequenceUtil.trimToNull(a));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user