添加测试

This commit is contained in:
cheney
2022-12-16 16:46:06 +08:00
parent 758a4ea116
commit 56eb803514
2 changed files with 45 additions and 6 deletions
@@ -42,12 +42,7 @@ public class TestCertUtil {
@Test
public void case3() throws CertificateException, NoSuchProviderException {
// 此证书是错误的
try {
CertUtil.isSM2Cert(readCert("/x509/c3.crt"));
} catch ( CertificateException e ) {
e.printStackTrace();
}
CertUtil.isSM2Cert(readCert("/x509/c3.crt"));
}
@Test