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 @Test
public void assertToBoolean() { public void assertToBoolean() {
Assert.isTrue(BooleanUtil.toBoolean("true"));
Assert.isTrue(BooleanUtil.toBoolean("yes"));
Assert.isTrue(BooleanUtil.toBoolean("1"));
} }
@Test @Test
public void assertIsTrue() { public void assertIsTrue() {
Assert.isTrue(BooleanUtil.isTrue(true));
} }
} }

Loading…
Cancel
Save