use of org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse in project cas by apereo.
the class InweboServiceTests method verifyErrSn.
@Test
public void verifyErrSn() {
val response = service.buildResponse(new InweboDeviceNameResponse(), OPERATION, "NOK:SN");
assertEquals(InweboResult.SN, response.getResult());
}
use of org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse in project cas by apereo.
the class InweboServiceTests method verifyErrWaiting.
@Test
public void verifyErrWaiting() {
val response = service.buildResponse(new InweboDeviceNameResponse(), OPERATION, "NOK:WAITING");
assertEquals(InweboResult.WAITING, response.getResult());
}
use of org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse in project cas by apereo.
the class InweboServiceTests method verifyErrNopush.
@Test
public void verifyErrNopush() {
val response = service.buildResponse(new InweboDeviceNameResponse(), OPERATION, "NOK:NOPUSH");
assertEquals(InweboResult.NOPUSH, response.getResult());
}
use of org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse in project cas by apereo.
the class InweboServiceTests method verifyErrOther.
@Test
public void verifyErrOther() {
val response = service.buildResponse(new InweboDeviceNameResponse(), OPERATION, "NOK:other");
assertEquals(InweboResult.NOK, response.getResult());
}
use of org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse in project cas by apereo.
the class InweboServiceTests method verifyErrTimeout.
@Test
public void verifyErrTimeout() {
val response = service.buildResponse(new InweboDeviceNameResponse(), OPERATION, "NOK:TIMEOUT");
assertEquals(InweboResult.TIMEOUT, response.getResult());
}
Aggregations