@MockPolicy(value=SharedSetUp.class) public class AdminSvcSpec_auth extends Object
| Modifier and Type | Field and Description |
|---|---|
private AdminConfig |
adminConfigMock |
private javax.ws.rs.container.AsyncResponse |
asyncResponseMock |
private Lot49Config |
configMock |
private String |
password |
private ServiceRunner |
serviceRunnerMock |
private AdminSvc |
svc |
private String |
username |
| Constructor and Description |
|---|
AdminSvcSpec_auth() |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkResponse(String adminConfigUsername,
String adminConfigPassword,
javax.ws.rs.core.Response.Status expectedResponseStatus) |
void |
negativeFlow_callResumeForbiddenIfPasswordIsIncorrect() |
void |
negativeFlow_callResumeForbiddenIfUsernameIsIncorrect() |
void |
negativeFlow_throwExceptionIfBaseUrlIsIncorrect() |
void |
positiveFlow_callForbiddenIfConfigPasswordIsNull() |
void |
positiveFlow_callResumeForbiddenIfConfigPasswordIsEmpty() |
void |
positiveFlow_callResumeSeeOtherIfConfigUserNameIsEmty() |
void |
positiveFlow_callResumeSeeOtherIfConfigUserNameIsNull() |
void |
positiveFlow_callResumeSeeOtherIfUsernameAndPasswordAreCorrect() |
void |
positiveFlow_callResumeWithExpectedResponseIfAllConfigDataAreCorrect() |
void |
setUp() |
private AdminSvc svc
private ServiceRunner serviceRunnerMock
private Lot49Config configMock
private AdminConfig adminConfigMock
private javax.ws.rs.container.AsyncResponse asyncResponseMock
private String username
private String password
public void positiveFlow_callResumeSeeOtherIfConfigUserNameIsNull()
throws Exception
Exceptionpublic void positiveFlow_callResumeSeeOtherIfConfigUserNameIsEmty()
throws Exception
Exceptionpublic void negativeFlow_callResumeForbiddenIfUsernameIsIncorrect()
throws Exception
Exceptionpublic void positiveFlow_callForbiddenIfConfigPasswordIsNull()
throws Exception
Exceptionpublic void positiveFlow_callResumeForbiddenIfConfigPasswordIsEmpty()
throws Exception
Exceptionpublic void negativeFlow_callResumeForbiddenIfPasswordIsIncorrect()
throws Exception
Exceptionpublic void positiveFlow_callResumeSeeOtherIfUsernameAndPasswordAreCorrect()
throws Exception
Exceptionpublic void negativeFlow_throwExceptionIfBaseUrlIsIncorrect()
throws Exception
Exceptionpublic void positiveFlow_callResumeWithExpectedResponseIfAllConfigDataAreCorrect()
throws Exception
Exception