1313
1414import 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