feat: BooleanUtilTest 补充测试用例 #581 (#588)

pull/592/head
wangjie 2 years ago committed by GitHub
parent babc81bd2f
commit 0bcb90e102
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,11 +23,13 @@ public class BooleanUtilTest {
@Test
public void assertToBoolean() {
Assert.isTrue(BooleanUtil.toBoolean("true"));
Assert.isTrue(BooleanUtil.toBoolean("yes"));
Assert.isTrue(BooleanUtil.toBoolean("1"));
}
@Test
public void assertIsTrue() {
Assert.isTrue(BooleanUtil.isTrue(true));
}
}

Loading…
Cancel
Save