mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
解决excel读到时空白行rowHanler重复执行的问题。
This commit is contained in:
@@ -1047,4 +1047,27 @@ public class CollUtilTest {
|
||||
final Object first = CollUtil.getFirst(nullList);
|
||||
Assert.assertNull(first);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void blankTest() {
|
||||
List<String> strs = new ArrayList<>();
|
||||
strs.add(null);
|
||||
strs.add("");
|
||||
strs.add("");
|
||||
|
||||
boolean c = CollUtil.isBlank(strs);
|
||||
Assert.assertEquals(true, c );
|
||||
|
||||
|
||||
List<String> arrs = new ArrayList<>();
|
||||
arrs.add(null);
|
||||
arrs.add("");
|
||||
arrs.add(" ");
|
||||
arrs.add("");
|
||||
arrs.add(" a ");
|
||||
|
||||
boolean d = CollUtil.isNotBlank(arrs);
|
||||
Assert.assertEquals(true, d );
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user