mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-24 18:04:54 +08:00
add test
This commit is contained in:
parent
edde416ffe
commit
cfc72cc2a9
@ -6,7 +6,7 @@ import org.junit.Test;
|
||||
public class ConvertToBooleanTest {
|
||||
|
||||
@Test
|
||||
public void intToBooleanTest(){
|
||||
public void intToBooleanTest() {
|
||||
final int a = 100;
|
||||
final Boolean aBoolean = Convert.toBool(a);
|
||||
Assert.assertTrue(aBoolean);
|
||||
@ -15,4 +15,11 @@ public class ConvertToBooleanTest {
|
||||
final Boolean bBoolean = Convert.toBool(b);
|
||||
Assert.assertFalse(bBoolean);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void issueI65P8ATest() {
|
||||
final Boolean bool = Convert.toBool("", Boolean.TRUE);
|
||||
Assert.assertFalse(bool);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user