This commit is contained in:
Looly 2021-06-24 08:03:18 +08:00
parent 949c7a856e
commit b8a35fdeae

View File

@ -304,4 +304,10 @@ public class ConvertTest {
// 默认转换失败报错而不是返回null // 默认转换失败报错而不是返回null
Convert.convert(Date.class, "aaaa"); Convert.convert(Date.class, "aaaa");
} }
@Test
public void toDateTest2(){
final Date date = Convert.toDate("2021-01");
Assert.assertNull(date);
}
} }