Skip to content

Commit 4b661fe

Browse files
author
Cristian Douce & Alberto Pose
committed
Changing tabs to spaces.
1 parent 4ef8a8f commit 4b661fe

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@
1010
*/
1111
public class TestHarness {
1212

13-
@Test
14-
public void testHarness() throws Exception {
15-
16-
final String secret = "This is a secret";
17-
final Algorithm algorithm = Algorithm.HS256;
18-
19-
User user = new User();
20-
user.setUsername("jwt");
21-
user.setPassword("mypassword");
22-
23-
JwtProxy proxy = new JwtProxyImpl();
24-
proxy.setPayloadHandler(new BasicPayloadHandler());
25-
26-
ClaimSet claimSet = new ClaimSet();
27-
claimSet.setExp(24 * 60 * 60); // expire in 24 hours
28-
String token = proxy.encode(algorithm, user, secret, claimSet);
29-
30-
Object payload = proxy.decode(algorithm, token, secret);
31-
assertEquals("{\"username\":\"jwt\",\"password\":\"mypassword\"}",payload);
32-
}
13+
@Test
14+
public void testHarness() throws Exception {
15+
16+
final String secret = "This is a secret";
17+
final Algorithm algorithm = Algorithm.HS256;
18+
19+
User user = new User();
20+
user.setUsername("jwt");
21+
user.setPassword("mypassword");
22+
23+
JwtProxy proxy = new JwtProxyImpl();
24+
proxy.setPayloadHandler(new BasicPayloadHandler());
25+
26+
ClaimSet claimSet = new ClaimSet();
27+
claimSet.setExp(24 * 60 * 60); // expire in 24 hours
28+
String token = proxy.encode(algorithm, user, secret, claimSet);
29+
30+
Object payload = proxy.decode(algorithm, token, secret);
31+
assertEquals("{\"username\":\"jwt\",\"password\":\"mypassword\"}",payload);
32+
}
3333
}

0 commit comments

Comments
 (0)