@MockPolicy(value=SharedSetUp.class) @PrepareForTest(value={LogUtils.class,Utils.class,ExchangeAdapterFactory.class}) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class AdCacheSpec_load extends Object
Modifier and Type | Field and Description |
---|---|
private AdCache |
adCache |
private AdCacheConfig |
adCacheConfig |
private EnremmetaGroovyClassLoader |
loader |
private ServiceRunner |
serviceRunnerMock |
org.junit.rules.TemporaryFolder |
tempFolder |
Constructor and Description |
---|
AdCacheSpec_load() |
Modifier and Type | Method and Description |
---|---|
void |
negativeFlow_returnsNullIfGroovyClassLoaderIsNull() |
void |
negativeFlow_returnsNullIfGroovyFileIsNull() |
void |
negativeFlow_returnsNullIfGroovyFileNotFound() |
void |
negativeFlow_returnsNullIfParseErrorHappened() |
void |
positiveFlow_freesUsedGroovyFile() |
void |
positiveFlow_returnsExpectedClassFromMapIfLoadCalledSecondTime() |
void |
positiveFlow_returnsExpectedClassIfGroovyFileIsCorrect() |
void |
setUp() |
private AdCacheConfig adCacheConfig
private AdCache adCache
private ServiceRunner serviceRunnerMock
private EnremmetaGroovyClassLoader loader
public org.junit.rules.TemporaryFolder tempFolder
public void negativeFlow_returnsNullIfGroovyClassLoaderIsNull() throws Exception
Exception
public void negativeFlow_returnsNullIfGroovyFileIsNull() throws Exception
Exception
public void negativeFlow_returnsNullIfGroovyFileNotFound() throws Exception
Exception
public void negativeFlow_returnsNullIfParseErrorHappened() throws Exception
Exception
public void positiveFlow_returnsExpectedClassIfGroovyFileIsCorrect() throws Exception
Exception
public void positiveFlow_returnsExpectedClassFromMapIfLoadCalledSecondTime() throws Exception
Exception