use of org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse in project cas by apereo.
the class InweboServiceTests method verifyErrNoma.
@Test
public void verifyErrNoma() {
val response = service.buildResponse(new InweboDeviceNameResponse(), OPERATION, "NOK:NOMA");
assertEquals(InweboResult.NOMA, response.getResult());
}
use of org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse in project cas by apereo.
the class InweboServiceTests method verifyErrNologin.
@Test
public void verifyErrNologin() {
val response = service.buildResponse(new InweboDeviceNameResponse(), OPERATION, "NOK:NOLOGIN");
assertEquals(InweboResult.NOLOGIN, response.getResult());
}
use of org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse in project cas by apereo.
the class InweboServiceTests method verifyErrSrv.
@Test
public void verifyErrSrv() {
val response = service.buildResponse(new InweboDeviceNameResponse(), OPERATION, "NOK:srv unknown");
assertEquals(InweboResult.UNKNOWN_SERVICE, response.getResult());
}
use of org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse in project cas by apereo.
the class InweboServiceTests method verifyErrRefused.
@Test
public void verifyErrRefused() {
val response = service.buildResponse(new InweboDeviceNameResponse(), OPERATION, "NOK:REFUSED");
assertEquals(InweboResult.REFUSED, response.getResult());
}
use of org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse in project cas by apereo.
the class InweboServiceTests method verifyErrOk.
@Test
public void verifyErrOk() {
val response = service.buildResponse(new InweboDeviceNameResponse(), OPERATION, "OK");
assertEquals(InweboResult.OK, response.getResult());
}
Aggregations