@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
Exceptionpublic void negativeFlow_redirectsToLoginIfNotAuthenticated()
throws Exception
Exceptionpublic void positiveFlow_avoidsExceptionIfGetAllReturnsNull()
throws Exception
Exceptionpublic void positiveFlow_avoidsExceptionIfGetXxxAdsReturnsNull()
throws Exception
Exceptionpublic void positiveFlow_callsResumeWithExpectedResponseIfThereAreNoAds()
throws Exception
Exceptionpublic void positiveFlow_callsResumeWithExpectedResponseIfThereAreSomeAds()
throws Exception
Exceptionprivate void testIndexIfAuthenticated(Ad[] validAds, List<Ad> zeroBudgetAds, Map<Ad,String> invalidAds, Map<String,String> uncompilableAds) throws Exception
Exception