RestJobsService implements JobsService { public String getCallbackEndpoint(ProcessInstanceJobDescription description) { return URIBuilder.toURI(callbackEndpoint + "/management/jobs/" + description.processId() + "/instances/" + description.processInstanceId() + "/timers/" + description.id()) .toString(); } RestJobsService(String jobServiceUrl, String callbackEndpoint); String getCallbackEndpoint(ProcessInstanceJobDescription description); URI getJobsServiceUri(); @SuppressWarnings("squid:S1075")
    static final String JOBS_PATH; }
@Test void testGetCallbackEndpoint() { ProcessInstanceJobDescription description = ProcessInstanceJobDescription.of(123, ExactExpirationTime.now(), "processInstanceId", "processId"); String callbackEndpoint = tested.getCallbackEndpoint(description); assertThat(callbackEndpoint) .isEqualTo("http: }