use of org.kie.kogito.jobs.TimerJobId in project kogito-runtimes by kiegroup.
the class RestJobsServiceTest method testGetCallbackEndpoint.
@Test
void testGetCallbackEndpoint() {
ProcessInstanceJobDescription description = ProcessInstanceJobDescription.of(new TimerJobId(), ExactExpirationTime.now(), "processInstanceId", "processId");
String callbackEndpoint = tested.getCallbackEndpoint(description);
assertThat(callbackEndpoint).isEqualTo("http://localhost:80/management/jobs/processId/instances/processInstanceId/timers/" + description.id());
}
Aggregations