@MockPolicy(value=SharedSetUp.class) @PrepareForTest(value={LogUtils.class,AdminSvc.class,ExchangeAdapterFactory.class,Test2ExchangeAdapter.class,AdaptvAdapter.class}) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class AdminSvcSpec_debug1 extends Object
Modifier and Type | Field and Description |
---|---|
private javax.ws.rs.container.AsyncResponse |
asyncResponseMock |
private Ad |
debugAd |
private String |
debugAdId |
private Tag |
debugTag |
private String |
debugTagId |
private ServiceRunner |
serviceRunnerMock |
private javax.servlet.http.HttpServletRequest |
servletRequestMock |
private AdminSvc |
svc |
Constructor and Description |
---|
AdminSvcSpec_debug1() |
private ServiceRunner serviceRunnerMock
private javax.servlet.http.HttpServletRequest servletRequestMock
private javax.ws.rs.container.AsyncResponse asyncResponseMock
private AdminSvc svc
private Ad debugAd
private String debugAdId
private Tag debugTag
private String debugTagId
private void configMocks(String host, Ad[] allAds, String clickSimUrl) throws Exception
Exception
public void negativeFlow_callsResumeWithInternalServerErrorIfGetAllReturnsNull() throws Exception
Exception
public void negativeFlow_callsResumeWithInternalServerErrorIfAdNotFound() throws Exception
Exception
public void negativeFlow_callsResumeWithInternalServerErrorIfGetTagsReturnsNull() throws Exception
Exception
public void negativeFlow_callsResumeWithInternalServerErrorIfTagNotFound() throws Exception
Exception
public void negativeFlow_callsResumeWithInternalServerErrorIfFindTagReturnsNull() throws Exception
Exception
public void negativeFlow_callsResumeWithInternalServerErrorIfExchangeAdapterNotFound() throws Exception
Exception
public void positiveFlow_callsResumeWithExpectedResponseIfAllDataAreCorrect() throws Exception
Exception
public void positiveFlow_callsResumeWithExpectedResponseIfClickSimUrlIsNotNull() throws Exception
Exception
public void positiveFlow_callsResumeWithExpectedResponseIfExchnageAdapterIsAdaptv() throws Exception
Exception
public void negativeFlow_callsResumeWithSeeOtherIfExchnageAdapterWithoutMacros() throws Exception
Exception
public void negativeFlow_callsResumeWithInternalServerErrorIfDebug2UrlIsBad() throws Exception
Exception
private void testDebug1(Ad[] allAds, List<Tag> tags, String exchangeName, String clickSimUrl, javax.ws.rs.core.Response.Status expectedResponseStatus) throws Exception
Exception