Search in sources :

Example 6 with InweboDeviceNameResponse

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

Example 7 with InweboDeviceNameResponse

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

Example 8 with InweboDeviceNameResponse

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

Example 9 with InweboDeviceNameResponse

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

Example 10 with InweboDeviceNameResponse

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());
}
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