mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix test
This commit is contained in:
@@ -77,7 +77,7 @@ public class CaptchaTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
@Ignore
|
||||||
public void ShearCaptchaTest() {
|
public void shearCaptchaTest() {
|
||||||
|
|
||||||
// 定义图形验证码的长和宽
|
// 定义图形验证码的长和宽
|
||||||
ShearCaptcha captcha = CaptchaUtil.createShearCaptcha(203, 100, 4, 4);
|
ShearCaptcha captcha = CaptchaUtil.createShearCaptcha(203, 100, 4, 4);
|
||||||
@@ -88,6 +88,18 @@ public class CaptchaTest {
|
|||||||
captcha.verify("1234");
|
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
|
@Test
|
||||||
@Ignore
|
@Ignore
|
||||||
public void ShearCaptchaWithMathTest() {
|
public void ShearCaptchaWithMathTest() {
|
||||||
|
Reference in New Issue
Block a user