use of io.camunda.zeebe.client.api.response.CompleteJobResponse in project zeebe by camunda.
the class CompleteJobCommandImpl method send.
@Override
public ZeebeFuture<CompleteJobResponse> send() {
final CompleteJobRequest request = builder.build();
final RetriableClientFutureImpl<CompleteJobResponse, GatewayOuterClass.CompleteJobResponse> future = new RetriableClientFutureImpl<>(CompleteJobResponseImpl::new, retryPredicate, streamObserver -> send(request, streamObserver));
send(request, future);
return future;
}
use of io.camunda.zeebe.client.api.response.CompleteJobResponse in project zeebe by camunda.
the class CompleteJobTest method shouldNotHaveNullResponse.
@Test
public void shouldNotHaveNullResponse() {
// given
final CompleteJobCommandStep1 command = client.newCompleteCommand(12);
// when
final CompleteJobResponse response = command.send().join();
// then
assertThat(response).isNotNull();
}
use of io.camunda.zeebe.client.api.response.CompleteJobResponse in project zeebe by zeebe-io.
the class CompleteJobTest method shouldNotHaveNullResponse.
@Test
public void shouldNotHaveNullResponse() {
// given
final CompleteJobCommandStep1 command = client.newCompleteCommand(12);
// when
final CompleteJobResponse response = command.send().join();
// then
assertThat(response).isNotNull();
}
use of io.camunda.zeebe.client.api.response.CompleteJobResponse in project zeebe by zeebe-io.
the class CompleteJobCommandImpl method send.
@Override
public ZeebeFuture<CompleteJobResponse> send() {
final CompleteJobRequest request = builder.build();
final RetriableClientFutureImpl<CompleteJobResponse, GatewayOuterClass.CompleteJobResponse> future = new RetriableClientFutureImpl<>(CompleteJobResponseImpl::new, retryPredicate, streamObserver -> send(request, streamObserver));
send(request, future);
return future;
}
use of io.camunda.zeebe.client.api.response.CompleteJobResponse in project zeebe by camunda-cloud.
the class CompleteJobTest method shouldNotHaveNullResponse.
@Test
public void shouldNotHaveNullResponse() {
// given
final CompleteJobCommandStep1 command = client.newCompleteCommand(12);
// when
final CompleteJobResponse response = command.send().join();
// then
assertThat(response).isNotNull();
}
Aggregations