@MockPolicy(value=SharedSetUp.class) @PrepareForTest(value={LogUtils.class,ExchangeAdapterFactory.class}) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class AdCacheSpec_loadAd extends Object
Modifier and Type | Field and Description |
---|---|
private AdCache |
adCache |
private AdCacheConfig |
adCacheConfig |
private String |
adFileName |
private File |
groovyPkgDir |
private EnremmetaGroovyClassLoader |
loader |
private ServiceRunner |
serviceRunnerMock |
org.junit.rules.TemporaryFolder |
tempFolder |
Constructor and Description |
---|
AdCacheSpec_loadAd() |
Modifier and Type | Method and Description |
---|---|
void |
negativeFlow_returnsNullIfGroovyFileNotFound() |
void |
negativeFlow_returnsNullIfLoadedAdIsNotValid() |
void |
negativeFlow_returnsNullIfValidateCausesException() |
void |
positiveFlow_returnsExpectedAdIfGroovyFileIsCorrect() |
void |
setUp() |
private AdCacheConfig adCacheConfig
private AdCache adCache
private ServiceRunner serviceRunnerMock
private EnremmetaGroovyClassLoader loader
private File groovyPkgDir
private String adFileName
public org.junit.rules.TemporaryFolder tempFolder
public void negativeFlow_returnsNullIfGroovyFileNotFound() throws Exception
Exception
public void negativeFlow_returnsNullIfLoadedAdIsNotValid() throws Exception
Exception
public void negativeFlow_returnsNullIfValidateCausesException() throws Exception
Exception