Search in sources :

Example 11 with InweboDeviceNameResponse

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());
}
Also used : lombok.val(lombok.val) InweboDeviceNameResponse(org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse) Test(org.junit.jupiter.api.Test)

Example 12 with InweboDeviceNameResponse

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());
}
Also used : lombok.val(lombok.val) InweboDeviceNameResponse(org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse) Test(org.junit.jupiter.api.Test)

Example 13 with InweboDeviceNameResponse

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());
}
Also used : lombok.val(lombok.val) InweboDeviceNameResponse(org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse) Test(org.junit.jupiter.api.Test)

Example 14 with InweboDeviceNameResponse

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());
}
Also used : lombok.val(lombok.val) InweboDeviceNameResponse(org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse) Test(org.junit.jupiter.api.Test)

Example 15 with InweboDeviceNameResponse

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());
}
Also used : lombok.val(lombok.val) InweboDeviceNameResponse(org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse) Test(org.junit.jupiter.api.Test)

Aggregations

lombok.val (lombok.val)15 InweboDeviceNameResponse (org.apereo.cas.support.inwebo.service.response.InweboDeviceNameResponse)15 Test (org.junit.jupiter.api.Test)12 InweboMultifactorAuthenticationProperties (org.apereo.cas.configuration.model.support.mfa.InweboMultifactorAuthenticationProperties)2 ServicesManager (org.apereo.cas.services.ServicesManager)2