mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix bugs
This commit is contained in:
parent
8e70a2aca7
commit
334ad373c2
@ -7,10 +7,11 @@
|
|||||||
|
|
||||||
### 新特性
|
### 新特性
|
||||||
* 【core】 ImgUtil.rotate支持负数(issue#543@Github)
|
* 【core】 ImgUtil.rotate支持负数(issue#543@Github)
|
||||||
* 【http】 body方法传null跳过而非报错(issue#I12AP2@Github)
|
* 【http】 body方法传null跳过而非报错(issue#I12AP2@Gitee)
|
||||||
* 【core】 TimeInterval增加intervalPretty方法(issue#I12A6T@Github)
|
* 【core】 TimeInterval增加intervalPretty方法(issue#I12A6T@Gitee)
|
||||||
### Bug修复
|
### Bug修复
|
||||||
* 【core】 修复DateUtil.offset导致的时区错误问题(issue#I1294O@Github)
|
* 【core】 修复DateUtil.offset导致的时区错误问题(issue#I1294O@Gitee)
|
||||||
|
* 【core】 修复RuntimeUtil.exec重载导致的问题(issue#544@Github)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -7,6 +7,8 @@ import org.junit.Test;
|
|||||||
import cn.hutool.captcha.generator.MathGenerator;
|
import cn.hutool.captcha.generator.MathGenerator;
|
||||||
import cn.hutool.core.lang.Console;
|
import cn.hutool.core.lang.Console;
|
||||||
|
|
||||||
|
import java.awt.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 直线干扰验证码单元测试
|
* 直线干扰验证码单元测试
|
||||||
*
|
*
|
||||||
@ -22,6 +24,15 @@ public class CaptchaTest {
|
|||||||
Assert.assertNotNull(lineCaptcha.getCode());
|
Assert.assertNotNull(lineCaptcha.getCode());
|
||||||
Assert.assertTrue(lineCaptcha.verify(lineCaptcha.getCode()));
|
Assert.assertTrue(lineCaptcha.verify(lineCaptcha.getCode()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Ignore
|
||||||
|
public void lineCaptchaTest3() {
|
||||||
|
// 定义图形验证码的长和宽
|
||||||
|
LineCaptcha lineCaptcha = CaptchaUtil.createLineCaptcha(200, 70, 4, 15);
|
||||||
|
lineCaptcha.setBackground(Color.yellow);
|
||||||
|
lineCaptcha.write("f:/test/captcha/tellow.png");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
@Ignore
|
||||||
|
@ -106,7 +106,7 @@ public class RuntimeUtil {
|
|||||||
* @since 4.1.6
|
* @since 4.1.6
|
||||||
*/
|
*/
|
||||||
public static Process exec(String[] envp, String... cmds) {
|
public static Process exec(String[] envp, String... cmds) {
|
||||||
return exec(envp, cmds);
|
return exec(envp, null, cmds);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user