@@ -664,7 +664,7 @@ public void shouldTolerateRejectedBidderByTcf() throws IOException {
664
664
given (bidderCatalog .isActive (APPNEXUS )).willReturn (true );
665
665
666
666
given (bidderCatalog .bidderInfoByName (APPNEXUS ))
667
- .willReturn (BidderInfo .create (true , null , null , null , null , null , null , 2 , true , true , false ));
667
+ .willReturn (BidderInfo .create (true , null , null , null , null , null , null , 2 , true , false ));
668
668
669
669
givenTcfServiceReturningVendorIdResult (singleton (1 ));
670
670
givenTcfServiceReturningBidderNamesResult (singleton (RUBICON ));
@@ -730,7 +730,7 @@ bidderCatalog, tcfDefinerService, privacyEnforcementService, null, false, emptyL
730
730
731
731
given (bidderCatalog .bidderInfoByName (APPNEXUS ))
732
732
.willReturn (BidderInfo .create (true , null , null , null ,
733
- null , null , null , 2 , true , true , false ));
733
+ null , null , null , 2 , true , false ));
734
734
735
735
givenTcfServiceReturningBidderNamesResult (singleton (RUBICON ));
736
736
@@ -760,7 +760,7 @@ public void shouldUpdateCookieSyncSetAndRejectByTcfMetricForEachRejectedAndSynce
760
760
given (bidderCatalog .isActive (APPNEXUS )).willReturn (true );
761
761
762
762
given (bidderCatalog .bidderInfoByName (APPNEXUS ))
763
- .willReturn (BidderInfo .create (true , null , null , null , null , null , null , 2 , true , true , false ));
763
+ .willReturn (BidderInfo .create (true , null , null , null , null , null , null , 2 , true , false ));
764
764
765
765
givenTcfServiceReturningVendorIdResult (singleton (1 ));
766
766
givenTcfServiceReturningBidderNamesResult (singleton (RUBICON ));
@@ -1316,25 +1316,20 @@ public void shouldPassSuccessfulEventToAnalyticsReporter() {
1316
1316
}
1317
1317
1318
1318
@ Test
1319
- public void shouldRespondWithNoCookieWhenBothCcpaAndGdprRejectBidders () throws IOException {
1319
+ public void shouldRespondWithNoCookieWhenCcpaRejectsBidder () throws IOException {
1320
1320
// given
1321
1321
given (uidsCookieService .parseFromRequest (any (RoutingContext .class ))).willReturn (new UidsCookie (
1322
1322
Uids .builder ().uids (emptyMap ()).build (), jacksonMapper ));
1323
1323
1324
1324
given (routingContext .getBody ())
1325
- .willReturn (givenRequestBody (CookieSyncRequest .builder ().bidders (asList (RUBICON , APPNEXUS )).build ()));
1325
+ .willReturn (givenRequestBody (CookieSyncRequest .builder ().bidders (singletonList (RUBICON )).build ()));
1326
1326
1327
1327
rubiconUsersyncer = createUsersyncer (RUBICON , "" , null );
1328
- appnexusUsersyncer = createUsersyncer (APPNEXUS_COOKIE , "" , null );
1329
1328
givenUsersyncersReturningFamilyName ();
1330
1329
1331
1330
given (bidderCatalog .isActive (RUBICON )).willReturn (true );
1332
- given (bidderCatalog .isActive (APPNEXUS )).willReturn (true );
1333
-
1334
1331
given (bidderCatalog .bidderInfoByName (RUBICON )).willReturn (
1335
- BidderInfo .create (true , null , null , null , null , null , null , 2 , true , true , false ));
1336
- given (bidderCatalog .bidderInfoByName (APPNEXUS )).willReturn (
1337
- BidderInfo .create (true , null , null , null , null , null , null , 2 , true , false , false ));
1332
+ BidderInfo .create (true , null , null , null , null , null , null , 2 , true , false ));
1338
1333
1339
1334
given (privacyEnforcementService .isCcpaEnforced (any (), any ())).willReturn (true );
1340
1335
@@ -1347,9 +1342,9 @@ public void shouldRespondWithNoCookieWhenBothCcpaAndGdprRejectBidders() throws I
1347
1342
// then
1348
1343
final CookieSyncResponse cookieSyncResponse = captureCookieSyncResponse ();
1349
1344
assertThat (cookieSyncResponse .getStatus ()).isEqualTo ("no_cookie" );
1350
- assertThat (cookieSyncResponse .getBidderStatus ()).hasSize (2 )
1345
+ assertThat (cookieSyncResponse .getBidderStatus ()).hasSize (1 )
1351
1346
.extracting (BidderUsersyncStatus ::getBidder , BidderUsersyncStatus ::getError )
1352
- .containsOnly (tuple (APPNEXUS , "Rejected by TCF" ), tuple ( RUBICON , "Rejected by CCPA" ));
1347
+ .containsOnly (tuple (RUBICON , "Rejected by CCPA" ));
1353
1348
}
1354
1349
1355
1350
private void givenTcfServiceReturningVendorIdResult (Set <Integer > vendorIds ) {
0 commit comments