This commit is contained in:
Looly
2021-01-22 21:48:28 +08:00
parent b7ca34d0e8
commit 93df8333df
6 changed files with 73 additions and 26 deletions

View File

@@ -108,4 +108,11 @@ public class CaptchaTest {
captcha.write("d:/test/gif_captcha.gif");
assert captcha.verify(captcha.getCode());
}
@Test
public void bgTest(){
LineCaptcha captcha = CaptchaUtil.createLineCaptcha(200, 100, 4, 1);
captcha.setBackground(Color.WHITE);
captcha.write("d:/test/test.jpg");
}
}