Skip to content

Commit 1f1bb4b

Browse files
committed
Resolve warnings
1 parent 7fbed12 commit 1f1bb4b

5 files changed

Lines changed: 18 additions & 14 deletions

File tree

src/test/java/org/prebid/server/auction/VideoStoredRequestProcessorTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public void shouldReturnMergedStoredAndDefaultRequest() {
141141
identity(),
142142
builder -> builder.pods(pods));
143143

144-
final StoredDataResult storedDataResult = StoredDataResult.of(
144+
final StoredDataResult<String> storedDataResult = StoredDataResult.of(
145145
singletonMap(STORED_REQUEST_ID, jacksonMapper.encodeToString(storedVideo)),
146146
singletonMap(STORED_POD_ID, "{}"),
147147
emptyList());
@@ -245,7 +245,7 @@ public void shouldFailWhenThereAreNoStoredImpsFound() {
245245
identity(),
246246
builder -> builder.pods(asList(pod1, pod2)));
247247

248-
final StoredDataResult storedDataResult = StoredDataResult.of(emptyMap(), emptyMap(), emptyList());
248+
final StoredDataResult<String> storedDataResult = StoredDataResult.of(emptyMap(), emptyMap(), emptyList());
249249

250250
given(applicationSettings.getVideoStoredData(any(), anySet(), anySet(), any()))
251251
.willReturn(Future.succeededFuture(storedDataResult));
@@ -291,7 +291,7 @@ public void shouldReturnCorrectAdPodDurationIfRequireExactDurationIsTrue() {
291291
.durationRangeSec(asList(30, 60, 80))
292292
.pods(singletonList(Pod.of(123, 30, STORED_POD_ID))));
293293

294-
final StoredDataResult storedDataResult = StoredDataResult.of(
294+
final StoredDataResult<String> storedDataResult = StoredDataResult.of(
295295
singletonMap(STORED_REQUEST_ID, jacksonMapper.encodeToString(storedVideo)),
296296
singletonMap(STORED_POD_ID, "{}"),
297297
emptyList());
@@ -364,7 +364,7 @@ public void shouldReturnCorrectPriceGranularityInRequest() {
364364
bidRequestVideoBuilder -> bidRequestVideoBuilder.pricegranularity(priceGranularity),
365365
builder -> builder.pods(singletonList(Pod.of(123, 20, STORED_POD_ID))));
366366

367-
final StoredDataResult storedDataResult = StoredDataResult.of(
367+
final StoredDataResult<String> storedDataResult = StoredDataResult.of(
368368
singletonMap(STORED_REQUEST_ID, jacksonMapper.encodeToString(storedVideo)),
369369
singletonMap(STORED_POD_ID, "{}"),
370370
emptyList());

src/test/java/org/prebid/server/settings/SettingsCacheTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
public class SettingsCacheTest {
1313

14-
private SettingsCache settingsCache;
14+
private SettingsCache<String> settingsCache;
1515

1616
@BeforeEach
1717
public void setUp() {
18-
settingsCache = new SettingsCache(10, 10, 0);
18+
settingsCache = new SettingsCache<>(10, 10, 0);
1919
}
2020

2121
@Test

src/test/java/org/prebid/server/settings/service/DatabasePeriodicRefreshServiceTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
public class DatabasePeriodicRefreshServiceTest {
4242

4343
@Mock
44-
private CacheNotificationListener cacheNotificationListener;
44+
private CacheNotificationListener<String> cacheNotificationListener;
4545
@Mock
4646
private Vertx vertx;
4747
@Mock(strictness = LENIENT)
@@ -56,9 +56,9 @@ public class DatabasePeriodicRefreshServiceTest {
5656

5757
@BeforeEach
5858
public void setUp() {
59-
final StoredDataResult initialResult = StoredDataResult.of(singletonMap("id1", "value1"),
59+
final StoredDataResult<String> initialResult = StoredDataResult.of(singletonMap("id1", "value1"),
6060
singletonMap("id2", "value2"), emptyList());
61-
final StoredDataResult updateResult = StoredDataResult.of(singletonMap("id1", "null"),
61+
final StoredDataResult<String> updateResult = StoredDataResult.of(singletonMap("id1", "null"),
6262
singletonMap("id2", "changed_value"), emptyList());
6363

6464
given(databaseClient.executeQuery(eq("init_query"), anyList(), any(), any()))

src/test/java/org/prebid/server/settings/service/HttpPeriodicRefreshServiceTest.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class HttpPeriodicRefreshServiceTest extends VertxTest {
4242
private static final String ENDPOINT_URL = "http://stored-requests.prebid.com";
4343

4444
@Mock
45-
private CacheNotificationListener cacheNotificationListener;
45+
private CacheNotificationListener<String> cacheNotificationListener;
4646
@Mock(strictness = LENIENT)
4747
private HttpClient httpClient;
4848
@Mock
@@ -165,9 +165,13 @@ public void shouldModifyEndpointUrlCorrectlyIfUrlHasParameters() {
165165
verify(httpClient).get(startsWith("http://stored-requests.prebid.com?amp=true&last-modified="), anyLong());
166166
}
167167

168-
private static void createAndInitService(CacheNotificationListener notificationListener,
169-
String url, long refreshPeriod, long timeout,
170-
Vertx vertx, HttpClient httpClient) {
168+
private static void createAndInitService(CacheNotificationListener<String> notificationListener,
169+
String url,
170+
long refreshPeriod,
171+
long timeout,
172+
Vertx vertx,
173+
HttpClient httpClient) {
174+
171175
final HttpPeriodicRefreshService httpPeriodicRefreshService = new HttpPeriodicRefreshService(
172176
url, refreshPeriod, timeout, notificationListener, vertx, httpClient, jacksonMapper);
173177
httpPeriodicRefreshService.initialize(Promise.promise());

src/test/java/org/prebid/server/settings/service/S3PeriodicRefreshServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class S3PeriodicRefreshServiceTest extends VertxTest {
5151
private S3AsyncClient s3AsyncClient;
5252

5353
@Mock
54-
private CacheNotificationListener cacheNotificationListener;
54+
private CacheNotificationListener<String> cacheNotificationListener;
5555

5656
@Mock
5757
private Clock clock;

0 commit comments

Comments
 (0)