@@ -58,9 +58,10 @@ public void setUp() {
5858
5959 target = new CachingApplicationSettings (
6060 delegateSettings ,
61- new SettingsCache (360 , 100 , 0 ),
62- new SettingsCache (360 , 100 , 0 ),
63- new SettingsCache (360 , 100 , 0 ),
61+ new SettingsCache <>(360 , 100 , 0 ),
62+ new SettingsCache <>(360 , 100 , 0 ),
63+ new SettingsCache <>(360 , 100 , 0 ),
64+ new SettingsCache <>(360 , 100 , 0 ),
6465 metrics ,
6566 360 ,
6667 100 ,
@@ -357,7 +358,7 @@ public void getStoredDataShouldReturnResultOnSuccessiveCalls() {
357358 singletonMap ("reqid" , "json" ), singletonMap ("impid" , "json2" ), emptyList ())));
358359
359360 // when
360- final Future <StoredDataResult > future =
361+ final Future <StoredDataResult < String > > future =
361362 target .getStoredData ("1001" , singleton ("reqid" ), singleton ("impid" ), timeout );
362363 // second call
363364 target .getStoredData ("1001" , singleton ("reqid" ), singleton ("impid" ), timeout );
@@ -378,7 +379,7 @@ public void getStoredDataShouldPropagateFailure() {
378379 .willReturn (Future .failedFuture (new InvalidRequestException ("error" )));
379380
380381 // when
381- final Future <StoredDataResult > future =
382+ final Future <StoredDataResult < String > > future =
382383 target .getStoredData (null , singleton ("id" ), emptySet (), timeout );
383384
384385 // then
@@ -396,7 +397,7 @@ public void getStoredDataShouldReturnResultWithErrorsOnNotSuccessiveCallToCacheA
396397 emptyMap (), emptyMap (), singletonList ("error" ))));
397398
398399 // when
399- final Future <StoredDataResult > future =
400+ final Future <StoredDataResult < String > > future =
400401 target .getStoredData (null , singleton ("id" ), emptySet (), timeout );
401402
402403 // then
@@ -416,7 +417,7 @@ public void getStoredDataShouldReturnResultWithErrorIfAccountDiffers() {
416417 // when
417418 target .getStoredData ("1001" , singleton ("reqid" ), emptySet (), timeout );
418419 // second call
419- final Future <StoredDataResult > future =
420+ final Future <StoredDataResult < String > > future =
420421 target .getStoredData ("1002" , singleton ("reqid" ), emptySet (), timeout );
421422
422423 // then
0 commit comments