-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add storedAuctionResponse on imp level. #3461
Conversation
final Map<String, String> storedResponse = new HashMap<>(); | ||
storedResponse.put("storedAuctionResponse1", mapper.writeValueAsString(asList( | ||
SeatBid.builder().seat("appnexus").bid(singletonList(Bid.builder().id("id1").build())).build(), | ||
SeatBid.builder().seat("rubicon").bid(singletonList(Bid.builder().id("id3").build())).build()))); | ||
storedResponse.put("storedAuctionResponse2", mapper.writeValueAsString(singletonList( | ||
SeatBid.builder().seat("rubicon").bid(singletonList(Bid.builder().id("id2").build())).build()))); | ||
|
||
given(applicationSettings.getStoredResponses(any(), any())).willReturn( | ||
Future.succeededFuture(StoredResponseDataResult.of(storedResponse, emptyList()))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it has redundant returning values, the test needs only storedAuctionResponse2
, also I suggest checking that the first argument of the getStoredResponses
contains only storedAuctionResponse2
.map(impIdToExtPrebid -> Tuple2.of( | ||
impIdToExtPrebid.getKey(), | ||
extractAuctionStoredResponseId(impIdToExtPrebid.getValue()))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we use a custom Tuple2 when there is a Pair class from Apache libraries?
🔧 Type of changes
✨ What's the context?
What's the context for the changes? Are there any
🧠 Rationale behind the change
Why did you choose to make these changes? Were there any trade-offs you had to consider?
🧪 Test plan
How do you know the changes are safe to ship to production?
🏎 Quality check