@MockPolicy(value=SharedSetUp.class) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class AdminSvcSpec_index extends Object
Modifier and Type | Field and Description |
---|---|
private javax.ws.rs.container.AsyncResponse |
asyncResponseMock |
private ServiceRunner |
serviceRunnerMock |
private AdminSvc |
svc |
Constructor and Description |
---|
AdminSvcSpec_index() |
Modifier and Type | Method and Description |
---|---|
private void |
configMocks(String host,
Ad[] validAds,
List<Ad> zeroBudgetAds,
Map<Ad,String> invalidAds,
Map<String,String> uncompilableAds) |
private String |
fixMarkupErrors(String markup) |
void |
negativeFlow_redirectsToLoginIfNotAuthenticated() |
void |
positiveFlow_avoidsExceptionIfGetAllReturnsNull() |
void |
positiveFlow_avoidsExceptionIfGetXxxAdsReturnsNull() |
void |
positiveFlow_callsResumeWithExpectedResponseIfThereAreNoAds() |
void |
positiveFlow_callsResumeWithExpectedResponseIfThereAreSomeAds() |
void |
setUp() |
private void |
testIndexIfAuthenticated(Ad[] validAds,
List<Ad> zeroBudgetAds,
Map<Ad,String> invalidAds,
Map<String,String> uncompilableAds) |
private ServiceRunner serviceRunnerMock
private javax.ws.rs.container.AsyncResponse asyncResponseMock
private AdminSvc svc
private void configMocks(String host, Ad[] validAds, List<Ad> zeroBudgetAds, Map<Ad,String> invalidAds, Map<String,String> uncompilableAds) throws Exception
Exception
public void negativeFlow_redirectsToLoginIfNotAuthenticated() throws Exception
Exception
public void positiveFlow_avoidsExceptionIfGetAllReturnsNull() throws Exception
Exception
public void positiveFlow_avoidsExceptionIfGetXxxAdsReturnsNull() throws Exception
Exception
public void positiveFlow_callsResumeWithExpectedResponseIfThereAreNoAds() throws Exception
Exception
public void positiveFlow_callsResumeWithExpectedResponseIfThereAreSomeAds() throws Exception
Exception
private void testIndexIfAuthenticated(Ad[] validAds, List<Ad> zeroBudgetAds, Map<Ad,String> invalidAds, Map<String,String> uncompilableAds) throws Exception
Exception