From b7143b47dfd860708af9c6021e801dd61792c859 Mon Sep 17 00:00:00 2001 From: Alex Maltsev Date: Thu, 16 Sep 2021 15:37:01 +0300 Subject: [PATCH] Fixed fluent bug in UidsCookieServiceTest (#1449) --- .../java/org/prebid/server/cookie/UidsCookieServiceTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/prebid/server/cookie/UidsCookieServiceTest.java b/src/test/java/org/prebid/server/cookie/UidsCookieServiceTest.java index a8543f2e43f..0e8967ec347 100644 --- a/src/test/java/org/prebid/server/cookie/UidsCookieServiceTest.java +++ b/src/test/java/org/prebid/server/cookie/UidsCookieServiceTest.java @@ -20,6 +20,7 @@ import java.time.temporal.ChronoUnit; import java.util.Base64; import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.Map; import static java.util.Collections.emptyMap; @@ -273,12 +274,12 @@ public void shouldSkipFacebookSentinelFromUidsCookie() throws JsonProcessingExce @Test public void toCookieShouldEnforceMaxCookieSizeAndRemoveAUidWithCloserExpirationDate() throws IOException { // given - final UidsCookie uidsCookie = new UidsCookie(Uids.builder().uids(new HashMap<>()).build(), jacksonMapper) + final UidsCookie uidsCookie = new UidsCookie(Uids.builder().uids(new LinkedHashMap<>()).build(), jacksonMapper) + .updateUid("improvedigital", "improvedigitalUid") .updateUid(RUBICON, "rubiconUid") .updateUid("conversant", "conversantUid") .updateUid(ADNXS, "adnxsUid") .updateUid("sharethrough", "sharethroughUid") - .updateUid("improvedigital", "improvedigitalUid") .updateUid("somoaudience", "somoaudienceUid") .updateUid("verizonmedia", "verizonmediaUid");