change test and fix Spring bug

This commit is contained in:
Looly
2021-06-13 23:46:45 +08:00
parent 5fe634935d
commit 878c0169ea
7 changed files with 54 additions and 20 deletions

View File

@@ -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>

View File

@@ -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));
}
}