解决excel读到时空白行rowHanler重复执行的问题。

This commit is contained in:
hellozrh
2023-01-16 15:06:25 +08:00
parent 9994083fe1
commit c660d79bf2
4 changed files with 88 additions and 2 deletions

View File

@@ -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 );
}
}