This commit is contained in:
Looly
2024-09-29 17:00:03 +08:00
parent ede848ed07
commit 04b95fcb88
5 changed files with 32 additions and 45 deletions

View File

@@ -16,6 +16,7 @@
package org.dromara.hutool.crypto.symmetric;
import org.dromara.hutool.core.io.IORuntimeException;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
@@ -50,7 +51,7 @@ public class Sm4StreamTest {
sm4.encrypt(input, out, IS_CLOSE);
System.out.println("============encrypt end");
} catch (final IOException e) {
e.printStackTrace();
throw new IORuntimeException(e);
}
}
@@ -60,7 +61,7 @@ public class Sm4StreamTest {
sm4.decrypt(input, out, IS_CLOSE);
System.out.println("============decrypt end");
} catch (final IOException e) {
e.printStackTrace();
throw new IORuntimeException(e);
}
}
}