Skip to content

Commit d75e8cb

Browse files
Update TestJWTAuthToken.java
1 parent a94cad4 commit d75e8cb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/test/java/org/privacyidea/TestJWTAuthToken.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import static org.junit.Assert.assertEquals;
1515

16-
public class TestJWTAuthToken
16+
public class TestJWTAuthToken extends PILogImplementation
1717
{
1818
private ClientAndServer mockServer;
1919
private String authToken;
@@ -57,9 +57,9 @@ public void testSuccess()
5757
// Compare the tokens
5858
assertEquals(authToken, privacyIDEA.authToken);
5959

60-
System.out.println("Expected: " + authToken);
61-
System.out.println("Actual : " + privacyIDEA.authToken);
62-
System.out.println(i + 1 + "/3 auth token test passed!");
60+
log("Expected: " + authToken);
61+
log("Actual : " + privacyIDEA.authToken);
62+
log(i + 1 + "/3 auth token test passed!");
6363

6464
// Actualize the auth token
6565
authToken = getAuthToken();
@@ -89,9 +89,9 @@ public void testSuccess()
8989
}
9090

9191
assertEquals(authToken, privacyIDEA.authToken);
92-
System.out.println("Expected: " + authToken);
93-
System.out.println("Actual : " + privacyIDEA.authToken);
94-
System.out.println("3/3 auth token test passed!");
92+
log("Expected: " + authToken);
93+
log("Actual : " + privacyIDEA.authToken);
94+
log("3/3 auth token test passed!");
9595
}
9696

9797
@After
@@ -108,7 +108,7 @@ public void tearDown()
108108
*/
109109
private String getAuthToken()
110110
{
111-
System.out.println("JWT test token's expiration date: " + new Date(System.currentTimeMillis() + 65000));
111+
log("JWT test token's expiration date: " + new Date(System.currentTimeMillis() + 65000));
112112
return JWT.create()
113113
.withSubject("testUser")
114114
.withIssuer("testIssuer")

0 commit comments

Comments
 (0)