aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-01-31 15:05:49 +0300
committerGravatar Vitaly Takmazov2020-01-31 15:05:49 +0300
commit82c74714b249641f2a0c054f86aa09bb5339669d (patch)
tree5140867a38135bea42c2ee3ddb601e20dafa26a0 /src/test/java/com/juick
parent90b1b7d3e3436e50704de4ada811e699f215914f (diff)
Cleanup IDEA warnings
Diffstat (limited to 'src/test/java/com/juick')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index 5b3d87eb..a16d920b 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -2374,12 +2374,12 @@ public class ServerTests {
ECPublicKeySpec pubSpec = new ECPublicKeySpec(point, ecSpec);
ECPublicKey publicKeyGenerated = (ECPublicKey) keyFactory.generatePublic(pubSpec);
- Jws jwt = Jwts.parser()
+ Jws<Claims> jwt = Jwts.parser()
.setSigningKey(publicKeyGenerated)
.parseClaimsJws(secret);
Assert.assertThat(jwt.getHeader().get("kid"), is("keyid"));
Assert.assertThat(jwt.getHeader().get("alg"), is("ES256"));
- Claims claims = (Claims)jwt.getBody();
+ Claims claims = jwt.getBody();
Assert.assertThat(claims.get("iss"), is("teamid"));
Assert.assertThat(claims.get("sub"), is("com.example.app"));
Assert.assertThat(claims.get("aud"), is("https://appleid.apple.com"));