mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-19 10:08:07 +08:00
完善单元测试
This commit is contained in:
@@ -7,6 +7,9 @@ package cn.dev33.satoken.basic;
|
||||
*/
|
||||
public class SaBasicUtil {
|
||||
|
||||
private SaBasicUtil() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 底层 SaBasicTemplate 对象
|
||||
*/
|
||||
|
@@ -21,7 +21,7 @@ public class SaTokenContextDefaultImpl implements SaTokenContext {
|
||||
/**
|
||||
* 默认的上下文处理器对象
|
||||
*/
|
||||
public static SaTokenContext defaultContext = new SaTokenContextDefaultImpl();
|
||||
public static SaTokenContextDefaultImpl defaultContext = new SaTokenContextDefaultImpl();
|
||||
|
||||
/**
|
||||
* 默认的错误提示语
|
||||
|
@@ -10,6 +10,9 @@ import java.util.Map;
|
||||
*
|
||||
*/
|
||||
public class SaLoginConfig {
|
||||
|
||||
private SaLoginConfig() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param device 此次登录的客户端设备类型
|
||||
@@ -31,7 +34,7 @@ public class SaLoginConfig {
|
||||
* @param timeout 指定此次登录token的有效期, 单位:秒 (如未指定,自动取全局配置的timeout值)
|
||||
* @return 对象自身
|
||||
*/
|
||||
public static SaLoginModel setTimeout(Long timeout) {
|
||||
public static SaLoginModel setTimeout(long timeout) {
|
||||
return create().setTimeout(timeout);
|
||||
}
|
||||
|
||||
|
@@ -227,13 +227,4 @@ public class SaLoginModel {
|
||||
return new SaLoginModel();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 更换为 getDeviceOrDefault()
|
||||
* @return /
|
||||
*/
|
||||
@Deprecated
|
||||
public String getDeviceOrDefalut() {
|
||||
return getDeviceOrDefault();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user