@@ -78,10 +78,6 @@ public void setUp() {
7878 given (properties .getAuthToken ()).willReturn ("auth_token" );
7979 given (properties .getTreatmentRate ()).willReturn (1.0f );
8080
81- given (auctionInvocationContext .auctionContext ()).willReturn (auctionContext );
82- given (auctionContext .getActivityInfrastructure ()).willReturn (activityInfrastructure );
83- given (activityInfrastructure .isAllowed (any (), any ())).willReturn (true );
84-
8581 target = new LiveIntentOmniChannelIdentityProcessedAuctionRequestHook (
8682 properties , userFpdActivityMask , MAPPER , httpClient , 0.01d );
8783 }
@@ -172,6 +168,10 @@ public void tidPassingRestrictionShouldBeRespected() {
172168 given (httpClient .post (any (), any (), any (), anyLong ()))
173169 .willReturn (Future .succeededFuture (HttpClientResponse .of (200 , null , responseBody )));
174170
171+ given (auctionInvocationContext .auctionContext ()).willReturn (auctionContext );
172+ given (auctionContext .getActivityInfrastructure ()).willReturn (activityInfrastructure );
173+ given (activityInfrastructure .isAllowed (any (), any ())).willReturn (true );
174+
175175 given (activityInfrastructure .isAllowed (eq (Activity .TRANSMIT_TID ), any ())).willReturn (false );
176176 given (activityInfrastructure .isAllowed (eq (Activity .TRANSMIT_UFPD ), any ())).willReturn (false );
177177
@@ -205,6 +205,9 @@ public void eidPassingRestrictionShouldBeRespected() {
205205 given (httpClient .post (any (), any (), any (), anyLong ()))
206206 .willReturn (Future .succeededFuture (HttpClientResponse .of (200 , null , responseBody )));
207207
208+ given (auctionInvocationContext .auctionContext ()).willReturn (auctionContext );
209+ given (auctionContext .getActivityInfrastructure ()).willReturn (activityInfrastructure );
210+ given (activityInfrastructure .isAllowed (any (), any ())).willReturn (true );
208211 given (activityInfrastructure .isAllowed (eq (Activity .TRANSMIT_EIDS ), any ())).willReturn (false );
209212 given (activityInfrastructure .isAllowed (eq (Activity .TRANSMIT_UFPD ), any ())).willReturn (false );
210213
0 commit comments