mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user