mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix null
This commit is contained in:
@@ -392,4 +392,16 @@ public class ConvertTest {
|
||||
final LocalDate convert = Convert.convert(LocalDate.class, localDateTime);
|
||||
Assert.assertEquals(localDateTime.toLocalDate(), convert);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void toSBCTest(){
|
||||
final String s = Convert.toSBC(null);
|
||||
Assert.assertNull(s);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void toDBCTest(){
|
||||
final String s = Convert.toDBC(null);
|
||||
Assert.assertNull(s);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user