mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-18 17:48:03 +08:00
解决当权限码为null时可能带来的空指针问题
This commit is contained in:
@@ -71,6 +71,9 @@ public class SaFoxUtilTest {
|
||||
Assertions.assertTrue(SaFoxUtil.vagueMatch("hello*", "hello world"));
|
||||
Assertions.assertFalse(SaFoxUtil.vagueMatch("hello*", "he"));
|
||||
Assertions.assertTrue(SaFoxUtil.vagueMatch("hello*", "hello*"));
|
||||
Assertions.assertTrue(SaFoxUtil.vagueMatch(null, null));
|
||||
Assertions.assertFalse(SaFoxUtil.vagueMatch(null, "hello"));
|
||||
Assertions.assertFalse(SaFoxUtil.vagueMatch("hello*", null));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user