完善单元测试

This commit is contained in:
click33
2022-09-05 12:48:41 +08:00
parent 28701115dd
commit a8a6bce1a0
15 changed files with 298 additions and 18 deletions

View File

@@ -1,7 +1,5 @@
package cn.dev33.satoken.servlet.model;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import cn.dev33.satoken.context.model.SaResponse;
@@ -71,7 +69,7 @@ public class SaResponseForServlet implements SaResponse {
public Object redirect(String url) {
try {
response.sendRedirect(url);
} catch (IOException e) {
} catch (Exception e) {
throw new SaTokenException(e);
}
return null;