@PrepareForTest(value={ServiceRunner.class,Bidder.class,LostAuctionTask.class,LogUtils.class}) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class BidCandidateManagerSpec_postProcessBid extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
BidCandidateManagerSpec_postProcessBid.CampaignAbTesting |
private static class |
BidCandidateManagerSpec_postProcessBid.TargetingStrategyAbTesting |
Modifier and Type | Field and Description |
---|---|
private Ad |
adMock |
private javax.ws.rs.container.AsyncResponse |
asyncResponseMock |
private Bid |
bid |
private BidCandidateManager |
bidCandidateManager |
private ExchangeAdapter<?,?> |
exchangeAdapter |
private boolean |
multiple |
private OpenRtbRequest |
rtbRequest |
private OpenRtbResponse |
rtbResponse |
private long |
timeout |
Constructor and Description |
---|
BidCandidateManagerSpec_postProcessBid() |
Modifier and Type | Method and Description |
---|---|
private void |
commonAssertions(boolean result,
boolean expectedResult) |
private void |
configureAdmock(Ad adMock,
BidCandidateManagerSpec_postProcessBid.CampaignAbTesting campaignAbTesting,
BidCandidateManagerSpec_postProcessBid.TargetingStrategyAbTesting targetingStrategyAbTesting) |
private Ad |
createAdMock() |
void |
returnsFalseIfIsUnderExperimentAndControlForCampaign() |
void |
returnsFalseIfIsUnderExperimentAndControlForTargetingStrategy() |
void |
returnsTrueIfIsNotUnderExperiment() |
void |
returnsTrueIfIsNotUnderExperimentAndScheduleLostAuctionTaskThrowsException() |
void |
returnsTrueIfIsUnderExperimentAndNotExperimentForCampaign() |
void |
returnsTrueIfIsUnderExperimentAndTestForCampaign() |
void |
returnsTrueIfIsUnderExperimentAndTestForTargetingStrategy() |
void |
setUp() |
private OpenRtbRequest rtbRequest
private OpenRtbResponse rtbResponse
private javax.ws.rs.container.AsyncResponse asyncResponseMock
private long timeout
private ExchangeAdapter<?,?> exchangeAdapter
private BidCandidateManager bidCandidateManager
private Ad adMock
private Bid bid
private boolean multiple
public BidCandidateManagerSpec_postProcessBid()
private void configureAdmock(Ad adMock, BidCandidateManagerSpec_postProcessBid.CampaignAbTesting campaignAbTesting, BidCandidateManagerSpec_postProcessBid.TargetingStrategyAbTesting targetingStrategyAbTesting) throws Exception
Exception
public void returnsTrueIfIsNotUnderExperiment() throws Exception
Exception
public void returnsTrueIfIsNotUnderExperimentAndScheduleLostAuctionTaskThrowsException() throws Exception
Exception
public void returnsTrueIfIsUnderExperimentAndNotExperimentForCampaign() throws Exception
Exception
public void returnsFalseIfIsUnderExperimentAndControlForCampaign() throws Exception
Exception
public void returnsTrueIfIsUnderExperimentAndTestForCampaign() throws Exception
Exception
public void returnsFalseIfIsUnderExperimentAndControlForTargetingStrategy() throws Exception
Exception
public void returnsTrueIfIsUnderExperimentAndTestForTargetingStrategy() throws Exception
Exception
private void commonAssertions(boolean result, boolean expectedResult) throws Lot49Exception
Lot49Exception