mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
SM2解密时,兼容GmSSL非压缩省略的04头的密文
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
package cn.hutool.core.convert;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
public class ConvertToBooleanTest {
|
||||
|
||||
@Test
|
||||
@@ -15,4 +18,9 @@ public class ConvertToBooleanTest {
|
||||
final Boolean bBoolean = Convert.toBool(b);
|
||||
assertFalse(bBoolean);
|
||||
}
|
||||
|
||||
@Test
|
||||
void toBooleanWithDefaultTest() {
|
||||
Assertions.assertFalse(Convert.toBool("ddddd", false));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user