@PrepareForTest(value={ServiceRunner.class,LogUtils.class}) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class PubmaticAdapterSpec extends Object
Modifier and Type | Field and Description |
---|---|
private ExchangesConfig |
exchangesConfigMock |
private PubmaticConfig |
pmCfg |
private ServiceRunner |
serviceRunnerSimpleMock |
Constructor and Description |
---|
PubmaticAdapterSpec() |
Modifier and Type | Method and Description |
---|---|
void |
constructorNegativeFlow_vcodeWasEmpty() |
void |
constructorNegativeFlow_vcodeWasNotProvided() |
void |
constructorPositiveFlow_shouldSetPubmaticConfig() |
void |
convertRequestNegativeFlow_noUserInRequest() |
void |
convertRequestPositiveFlow_shouldSetAdapter() |
void |
convertRequestPositiveFlow_shouldSetBuyerId() |
protected File |
getTestDataFile(String name) |
void |
parseWinLossInfoNegativeFlow_quietDie() |
void |
parseWinLossInfoNegativeFlow_WLI_WIN_throwsNPE() |
void |
parseWinLossInfoPositiveFlow_WLI_OUTBID() |
void |
parseWinLossInfoPositiveFlow_WLI_TIMEOUT() |
void |
setUp() |
void |
test_BidswitchAdapterConvertRequest() |
void |
test_PubmaticJsonParsing() |
private ServiceRunner serviceRunnerSimpleMock
private ExchangesConfig exchangesConfigMock
private PubmaticConfig pmCfg
public void constructorNegativeFlow_vcodeWasNotProvided()
public void constructorNegativeFlow_vcodeWasEmpty()
public void constructorPositiveFlow_shouldSetPubmaticConfig() throws Lot49Exception
Lot49Exception
public void convertRequestPositiveFlow_shouldSetAdapter() throws Throwable
Throwable
public void convertRequestPositiveFlow_shouldSetBuyerId() throws Throwable
Throwable
public void convertRequestNegativeFlow_noUserInRequest() throws Throwable
Throwable
public void parseWinLossInfoNegativeFlow_quietDie() throws Throwable
Throwable
public void parseWinLossInfoNegativeFlow_WLI_WIN_throwsNPE() throws Throwable
Throwable
public void parseWinLossInfoPositiveFlow_WLI_TIMEOUT() throws Throwable
Throwable
public void parseWinLossInfoPositiveFlow_WLI_OUTBID() throws Throwable
Throwable
public void test_PubmaticJsonParsing()
public void test_BidswitchAdapterConvertRequest() throws Throwable
Throwable