mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
add test
This commit is contained in:
parent
fd049cef71
commit
49426fd6ea
@ -0,0 +1,13 @@
|
||||
package cn.hutool.crypto.asymmetric;
|
||||
|
||||
import org.bouncycastle.crypto.DataLengthException;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class Issue3925Test {
|
||||
@Test
|
||||
void sm2Test() {
|
||||
final SM2 sm2 = new SM2();
|
||||
Assertions.assertThrows(DataLengthException.class, ()->sm2.encrypt("", KeyType.PublicKey));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user