Skip to content

Commit b18de6a

Browse files
committed
fix review9: fmt ThresholdCacheTest
1 parent 16918f9 commit b18de6a

File tree

1 file changed

+2
-30
lines changed
  • extra/modules/greenbids-real-time-data/src/test/java/org/prebid/server/hooks/modules/greenbids/real/time/data/v1

1 file changed

+2
-30
lines changed

extra/modules/greenbids-real-time-data/src/test/java/org/prebid/server/hooks/modules/greenbids/real/time/data/v1/ThresholdCacheTest.java

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -121,21 +121,7 @@ public void getShouldSkipFetchingWhenFetchingInProgress() throws NoSuchFieldExce
121121
public void getShouldFetchThresholdsWhenNotInCache() throws IOException {
122122
// given
123123
final String cacheKey = THRESHOLD_CACHE_KEY_PREFIX + PBUUID;
124-
final String jsonContent = """
125-
{
126-
"thresholds": [
127-
0.4,
128-
0.224,
129-
0.018,
130-
0.018
131-
],
132-
"tpr": [
133-
0.8,
134-
0.95,
135-
0.99,
136-
0.9999
137-
]
138-
}""";
124+
final String jsonContent = "test_json_content";
139125
final byte[] bytes = jsonContent.getBytes(StandardCharsets.UTF_8);
140126

141127
when(cache.getIfPresent(eq(cacheKey))).thenReturn(null);
@@ -176,21 +162,7 @@ public void getShouldThrowExceptionWhenStorageFails() {
176162
public void getShouldThrowExceptionWhenLoadingJsonFails() throws IOException {
177163
// given
178164
final String cacheKey = THRESHOLD_CACHE_KEY_PREFIX + PBUUID;
179-
final String jsonContent = """
180-
{
181-
"thresholds": [
182-
0.4,
183-
0.224,
184-
0.018,
185-
0.018
186-
],
187-
"tpr": [
188-
0.8,
189-
0.95,
190-
0.99,
191-
0.9999
192-
]
193-
}""";
165+
final String jsonContent = "test_json_content";
194166
final byte[] bytes = jsonContent.getBytes(StandardCharsets.UTF_8);
195167
when(cache.getIfPresent(eq(cacheKey))).thenReturn(null);
196168
when(storage.get(GCS_BUCKET_NAME)).thenReturn(bucket);

0 commit comments

Comments
 (0)