@@ -251,7 +251,8 @@ public void inputOutputTest() throws Exception {
251251 EventAndException e = process .checkOrWaitForEvent (PROCESS_STATE .STARTED );
252252 assertNotNull (e );
253253 JsonObject jsonObj = new JsonObject ();
254- jsonObj .addProperty ("key" , "value" );
254+ String testValue = "asdf???123" ;
255+ jsonObj .addProperty ("key" , testValue );
255256
256257 // db key
257258 long expiryTime = System .currentTimeMillis () + 1000 ;
@@ -263,7 +264,7 @@ public void inputOutputTest() throws Exception {
263264 assertEquals ("userId" , info .userId );
264265 assertEquals ("refreshTokenHash1" , info .refreshTokenHash1 );
265266 assertEquals ("parentRefreshTokenHash1" , info .parentRefreshTokenHash1 );
266- assertEquals ("value" , info .userData .get ("key" ).getAsString ());
267+ assertEquals (testValue , info .userData .get ("key" ).getAsString ());
267268 assertEquals ("antiCsrfToken" , info .antiCsrfToken );
268269 assertEquals (expiryTime / 1000 * 1000 , info .expiryTime );
269270
@@ -281,7 +282,8 @@ public void inputOutputTestStatic() throws Exception {
281282 EventAndException e = process .checkOrWaitForEvent (PROCESS_STATE .STARTED );
282283 assertNotNull (e );
283284 JsonObject jsonObj = new JsonObject ();
284- jsonObj .addProperty ("key" , "value" );
285+ String testValue = "asdf???123" ;
286+ jsonObj .addProperty ("key" , testValue );
285287
286288 // db key
287289 long expiryTime = System .currentTimeMillis () + 1000 ;
@@ -293,7 +295,7 @@ public void inputOutputTestStatic() throws Exception {
293295 assertEquals ("userId" , info .userId );
294296 assertEquals ("refreshTokenHash1" , info .refreshTokenHash1 );
295297 assertEquals ("parentRefreshTokenHash1" , info .parentRefreshTokenHash1 );
296- assertEquals ("value" , info .userData .get ("key" ).getAsString ());
298+ assertEquals (testValue , info .userData .get ("key" ).getAsString ());
297299 assertEquals ("antiCsrfToken" , info .antiCsrfToken );
298300 assertEquals (expiryTime / 1000 * 1000 , info .expiryTime );
299301
@@ -310,7 +312,8 @@ public void inputOutputTestV2() throws Exception {
310312 EventAndException e = process .checkOrWaitForEvent (PROCESS_STATE .STARTED );
311313 assertNotNull (e );
312314 JsonObject jsonObj = new JsonObject ();
313- jsonObj .addProperty ("key" , "value" );
315+ String testValue = "asdf???123" ;
316+ jsonObj .addProperty ("key" , testValue );
314317
315318 // db key
316319 long expiryTime = System .currentTimeMillis () + 1000 ;
@@ -322,7 +325,7 @@ public void inputOutputTestV2() throws Exception {
322325 assertEquals ("userId" , info .userId );
323326 assertEquals ("refreshTokenHash1" , info .refreshTokenHash1 );
324327 assertEquals ("parentRefreshTokenHash1" , info .parentRefreshTokenHash1 );
325- assertEquals ("value" , info .userData .get ("key" ).getAsString ());
328+ assertEquals (testValue , info .userData .get ("key" ).getAsString ());
326329 assertEquals ("antiCsrfToken" , info .antiCsrfToken );
327330 assertEquals (expiryTime , info .expiryTime );
328331 process .kill ();
@@ -337,7 +340,8 @@ public void inputOutputTestv1() throws InterruptedException, InvalidKeyException
337340 EventAndException e = process .checkOrWaitForEvent (PROCESS_STATE .STARTED );
338341 assertNotNull (e );
339342 JsonObject jsonObj = new JsonObject ();
340- jsonObj .addProperty ("key" , "value" );
343+ String testValue = "asdf???123" ;
344+ jsonObj .addProperty ("key" , testValue );
341345
342346 // db key
343347 TokenInfo newToken = AccessToken .createNewAccessTokenV1 (process .getProcess (), "sessionHandle" , "userId" ,
@@ -347,7 +351,7 @@ public void inputOutputTestv1() throws InterruptedException, InvalidKeyException
347351 assertEquals ("userId" , info .userId );
348352 assertEquals ("refreshTokenHash1" , info .refreshTokenHash1 );
349353 assertEquals ("parentRefreshTokenHash1" , info .parentRefreshTokenHash1 );
350- assertEquals ("value" , info .userData .get ("key" ).getAsString ());
354+ assertEquals (testValue , info .userData .get ("key" ).getAsString ());
351355 assertEquals ("antiCsrfToken" , info .antiCsrfToken );
352356 process .kill ();
353357 }
0 commit comments