mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add test
This commit is contained in:
parent
949c7a856e
commit
b8a35fdeae
@ -304,4 +304,10 @@ public class ConvertTest {
|
||||
// 默认转换失败报错而不是返回null
|
||||
Convert.convert(Date.class, "aaaa");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void toDateTest2(){
|
||||
final Date date = Convert.toDate("2021-01");
|
||||
Assert.assertNull(date);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user