Search in sources :

Example 1 with ProcessInstanceNotFoundException

use of org.kie.kogito.process.ProcessInstanceNotFoundException in project kogito-runtimes by kiegroup.

the class BaseExceptionHandlerTest method testMapProcessInstanceNotFoundException.

@Test
void testMapProcessInstanceNotFoundException() {
    Object response = tested.mapException(new ProcessInstanceNotFoundException("processInstanceId"));
    assertThat(response).isEqualTo(notFoundResponse);
}
Also used : ProcessInstanceNotFoundException(org.kie.kogito.process.ProcessInstanceNotFoundException) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 ProcessInstanceNotFoundException (org.kie.kogito.process.ProcessInstanceNotFoundException)1