public class SharedSetUp extends Object implements org.powermock.core.spi.PowerMockPolicy
Modifier and Type | Class and Description |
---|---|
static class |
SharedSetUp.Ad_1001001_fake |
static class |
SharedSetUp.Ad_1001001_mock |
static class |
SharedSetUp.Tag_2002002_tagMarker_1001001_fake |
static class |
SharedSetUp.ThrowExceptionDeserializer<T>
Json deserializer that throws exception
|
static class |
SharedSetUp.ThrowExceptionSerializer<T>
Json serializer that throws exception
|
Modifier and Type | Field and Description |
---|---|
static String |
AD_GROOVE_SAMPLE |
static byte[] |
ENCRIPTION_KEY |
static Geo |
GEO_MARKER |
static byte[] |
INTEGRITY_KEY |
static String |
IP_MARKER |
static String |
TAG_GROOVE_SAMPLE |
static String |
USER_AGENT |
Constructor and Description |
---|
SharedSetUp() |
Modifier and Type | Method and Description |
---|---|
void |
applyClassLoadingPolicy(org.powermock.mockpolicies.MockPolicyClassLoadingSettings settings) |
void |
applyInterceptionPolicy(org.powermock.mockpolicies.MockPolicyInterceptionSettings settings) |
static AdCacheConfig |
createAdCacheConfig() |
static Ad |
createAdMock(String id,
String name,
String desc) |
static Bidder |
createBidderMock()
Creates mock for Bidder.
|
static ExchangeAdapter |
createExchangeAdapterMock(String exchangeName,
org.mockito.stubbing.Answer<Object> defaultAnswer)
Creates mock for class inherited from ExchangeAdapter, that will be returned by method
ExchangeAdapterFactory.getExchangeAdapter().
|
static com.lambdaworks.redis.RedisClient |
createRedisClientMock()
Creates mock for RedisClient.
|
static RedisServiceConfig |
createRedisServiceConfig() |
static RedisService |
createRedisServiceMock() |
static SecurityManagerConfig |
createSecurityManagerConfig() |
static ServiceRunner |
createServiceRunnerMock() |
static Tag |
createTagMock(String id,
String name,
String desc) |
static File |
createTempGroovyFile(org.junit.rules.TemporaryFolder tempFolder,
String scriptSubdir,
String fileName,
String groovyContent) |
static javax.ws.rs.container.AsyncResponse |
getFakeAsynkResponseObject() |
private static void |
prepareAdxConfigSecurity(AdXConfig xConfig) |
static void |
prepareExchanges(ExchangesConfig exchangesConfig) |
private static void |
prepareOpenXConfigSecurity(OpenXConfig xConfig) |
public static final byte[] ENCRIPTION_KEY
public static final byte[] INTEGRITY_KEY
public static final Geo GEO_MARKER
public static final String IP_MARKER
public static final String USER_AGENT
public static final String AD_GROOVE_SAMPLE
public static final String TAG_GROOVE_SAMPLE
public void applyClassLoadingPolicy(org.powermock.mockpolicies.MockPolicyClassLoadingSettings settings)
applyClassLoadingPolicy
in interface org.powermock.core.spi.PowerMockPolicy
public void applyInterceptionPolicy(org.powermock.mockpolicies.MockPolicyInterceptionSettings settings)
applyInterceptionPolicy
in interface org.powermock.core.spi.PowerMockPolicy
public static ServiceRunner createServiceRunnerMock()
public static Bidder createBidderMock()
public static ExchangeAdapter createExchangeAdapterMock(String exchangeName, org.mockito.stubbing.Answer<Object> defaultAnswer)
exchangeName
- name of exchange adapterdefaultAnswer
- default answer for unstubbed methodspublic static AdCacheConfig createAdCacheConfig()
public static RedisServiceConfig createRedisServiceConfig()
public static RedisService createRedisServiceMock() throws Exception
Exception
public static com.lambdaworks.redis.RedisClient createRedisClientMock() throws Exception
Exception
public static SecurityManagerConfig createSecurityManagerConfig()
public static javax.ws.rs.container.AsyncResponse getFakeAsynkResponseObject()
public static void prepareExchanges(ExchangesConfig exchangesConfig)
private static void prepareAdxConfigSecurity(AdXConfig xConfig)
private static void prepareOpenXConfigSecurity(OpenXConfig xConfig)
public static File createTempGroovyFile(org.junit.rules.TemporaryFolder tempFolder, String scriptSubdir, String fileName, String groovyContent) throws IOException
IOException