use of org.opensmartgridplatform.adapter.ws.schema.publiclighting.adhocmanagement.ResumeScheduleAsyncRequest in project open-smart-grid-platform by OSGP.
the class ResumeScheduleSteps method getResponseWithCorrelationUID.
private ResumeScheduleResponse getResponseWithCorrelationUID(final String deviceIdentification, final String correlationUID) throws InterruptedException, SoapFaultClientException {
final ResumeScheduleAsyncRequest request = new ResumeScheduleAsyncRequest();
final AsyncRequest asyncRequest = new AsyncRequest();
asyncRequest.setDeviceId(deviceIdentification);
asyncRequest.setCorrelationUid(correlationUID);
request.setAsyncRequest(asyncRequest);
return Wait.untilAndReturn(() -> {
final ResumeScheduleResponse retval = this.client.getResumeScheduleResponse(request);
assertThat(retval).isNotNull();
return retval;
});
}
Aggregations