From 6aba52fda8e913ee3a10295be308fbdc4d3ede5b Mon Sep 17 00:00:00 2001 From: Looly Date: Tue, 15 Jun 2021 16:28:24 +0800 Subject: [PATCH] fix test --- .../test/java/cn/hutool/captcha/CaptchaTest.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/hutool-captcha/src/test/java/cn/hutool/captcha/CaptchaTest.java b/hutool-captcha/src/test/java/cn/hutool/captcha/CaptchaTest.java index c349cf0b8..965cbc1e7 100644 --- a/hutool-captcha/src/test/java/cn/hutool/captcha/CaptchaTest.java +++ b/hutool-captcha/src/test/java/cn/hutool/captcha/CaptchaTest.java @@ -77,7 +77,7 @@ public class CaptchaTest { @Test @Ignore - public void ShearCaptchaTest() { + public void shearCaptchaTest() { // 定义图形验证码的长和宽 ShearCaptcha captcha = CaptchaUtil.createShearCaptcha(203, 100, 4, 4); @@ -88,6 +88,18 @@ public class CaptchaTest { captcha.verify("1234"); } + @Test + @Ignore + public void shearCaptchaTest2() { + + // 定义图形验证码的长和宽 + ShearCaptcha captcha = new ShearCaptcha(200, 100, 4, 4); + // 图形验证码写出,可以写出到文件,也可以写出到流 + captcha.write("d:/test/shear.png"); + // 验证图形验证码的有效性,返回boolean值 + captcha.verify("1234"); + } + @Test @Ignore public void ShearCaptchaWithMathTest() {