Skip to content

Commit a0fa787

Browse files
author
Michele Orsi
committed
removed System.out.println occurencies and moved User to test package
1 parent efe8678 commit a0fa787

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/com/auth0/jwt/TestHarness.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.auth0.jwt;
22

3+
import static org.junit.Assert.*;
34
import com.auth0.jwt.impl.BasicPayloadHandler;
45
import com.auth0.jwt.impl.JwtProxyImpl;
56
import org.junit.Test;
@@ -25,9 +26,8 @@ public void testHarness() throws Exception {
2526
ClaimSet claimSet = new ClaimSet();
2627
claimSet.setExp(24 * 60 * 60); // expire in 24 hours
2728
String token = proxy.encode(algorithm, user, secret, claimSet);
28-
System.out.println(token);
2929

3030
Object payload = proxy.decode(algorithm, token, secret);
31-
System.out.println(payload);
31+
assertEquals("{\"username\":\"jwt\",\"password\":\"mypassword\"}",payload);
3232
}
3333
}

0 commit comments

Comments
 (0)