mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
change test and fix Spring bug
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
<artifactId>hutool-jwt</artifactId>
|
||||
<name>${project.artifactId}</name>
|
||||
<description>Hutool JWT生成、解析和验证实现</description>
|
||||
<description>JWT生成、解析和验证实现</description>
|
||||
|
||||
<properties>
|
||||
<!-- versions -->
|
||||
@@ -30,6 +30,7 @@
|
||||
<artifactId>hutool-crypto</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<!-- 测试特殊算法 -->
|
||||
<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcprov-jdk15to18</artifactId>
|
||||
|
@@ -116,6 +116,6 @@ public class JWTSignerTest {
|
||||
.setSigner(signer);
|
||||
|
||||
String token = jwt.sign();
|
||||
Assert.assertTrue(JWT.of(token).setSigner(signer).verify());
|
||||
Assert.assertTrue(JWT.of(token).verify(signer));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user