@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
Lot49Exceptionpublic void convertRequestPositiveFlow_shouldSetAdapter()
throws Throwable
Throwablepublic void convertRequestPositiveFlow_shouldSetBuyerId()
throws Throwable
Throwablepublic void convertRequestNegativeFlow_noUserInRequest()
throws Throwable
Throwablepublic void parseWinLossInfoNegativeFlow_quietDie()
throws Throwable
Throwablepublic void parseWinLossInfoNegativeFlow_WLI_WIN_throwsNPE()
throws Throwable
Throwablepublic void parseWinLossInfoPositiveFlow_WLI_TIMEOUT()
throws Throwable
Throwablepublic void parseWinLossInfoPositiveFlow_WLI_OUTBID()
throws Throwable
Throwablepublic void test_PubmaticJsonParsing()
public void test_BidswitchAdapterConvertRequest()
throws Throwable
Throwable