@MockPolicy(value=SharedSetUp.class) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class AdminSvcSpec_invAd extends Object
Modifier and Type | Field and Description |
---|---|
private javax.ws.rs.container.AsyncResponse |
asyncResponseMock |
private Ad |
invAd |
private String |
invAdId |
private ServiceRunner |
serviceRunnerMock |
private AdminSvc |
svc |
Constructor and Description |
---|
AdminSvcSpec_invAd() |
Modifier and Type | Method and Description |
---|---|
private void |
configAdMock(Ad adMock,
Expression<String> segments,
List<TargetingGeo> geos,
List<Tag> tags) |
private void |
configMocks(String host,
Ad[] allAds) |
private String |
fixMarkupErrors(String markup) |
void |
negativeFlow_redirectsToLoginIfNotAuthenticated() |
void |
negativeFlow_throwsExceptionIfInvAdNotFound() |
void |
positiveFlow_avoidsExceptionIfFoundGetXxxReturnsNull() |
void |
positiveFlow_avoidsExceptionIfGetAllReturnsNull() |
void |
positiveFlow_callsResumeWithExpectedResponseIfAllDataAreCorrect() |
void |
positiveFlow_callsResumeWithExpectedResponseIfFoundGetXxxReturnsEmptyCollections() |
void |
setUp() |
private void |
testInvAdIfAuthenticatedAndInvAdFound(Ad[] allAds,
Expression<String> segments,
List<TargetingGeo> geos,
List<Tag> tags) |
private ServiceRunner serviceRunnerMock
private javax.ws.rs.container.AsyncResponse asyncResponseMock
private AdminSvc svc
private Ad invAd
private String invAdId
private void configAdMock(Ad adMock, Expression<String> segments, List<TargetingGeo> geos, List<Tag> tags)
public void negativeFlow_redirectsToLoginIfNotAuthenticated() throws Exception
Exception
public void positiveFlow_avoidsExceptionIfGetAllReturnsNull() throws Exception
Exception
public void negativeFlow_throwsExceptionIfInvAdNotFound() throws Exception
Exception
public void positiveFlow_avoidsExceptionIfFoundGetXxxReturnsNull() throws Exception
Exception
public void positiveFlow_callsResumeWithExpectedResponseIfFoundGetXxxReturnsEmptyCollections() throws Exception
Exception
public void positiveFlow_callsResumeWithExpectedResponseIfAllDataAreCorrect() throws Exception
Exception
private void testInvAdIfAuthenticatedAndInvAdFound(Ad[] allAds, Expression<String> segments, List<TargetingGeo> geos, List<Tag> tags) throws Exception
Exception