Search in sources :

Example 1 with FindScheduledTasksRequest

use of org.opensmartgridplatform.adapter.ws.schema.core.devicemanagement.FindScheduledTasksRequest in project open-smart-grid-platform by OSGP.

the class FindScheduledTasksSteps method whenReceivingAFindScheduledTasksRequests.

@When("receiving a find scheduled tasks request")
public void whenReceivingAFindScheduledTasksRequests() {
    final FindScheduledTasksRequest request = new FindScheduledTasksRequest();
    try {
        final FindScheduledTasksResponse response = this.client.findScheduledTasks(request);
        ScenarioContext.current().put(RESPONSE, response);
    } catch (final WebServiceSecurityException e) {
        ScenarioContext.current().put(RESPONSE, e);
    }
}
Also used : FindScheduledTasksResponse(org.opensmartgridplatform.adapter.ws.schema.core.devicemanagement.FindScheduledTasksResponse) FindScheduledTasksRequest(org.opensmartgridplatform.adapter.ws.schema.core.devicemanagement.FindScheduledTasksRequest) WebServiceSecurityException(org.opensmartgridplatform.shared.exceptionhandling.WebServiceSecurityException) When(io.cucumber.java.en.When)

Example 2 with FindScheduledTasksRequest

use of org.opensmartgridplatform.adapter.ws.schema.core.devicemanagement.FindScheduledTasksRequest in project open-smart-grid-platform by OSGP.

the class AuthorizePlatformFunctionsSteps method findScheduledTasks.

private void findScheduledTasks(final Map<String, String> requestParameters) throws WebServiceSecurityException {
    final FindScheduledTasksRequest request = new FindScheduledTasksRequest();
    request.setDeviceIdentification(PlatformCommonDefaults.DEFAULT_DEVICE_IDENTIFICATION);
    ScenarioContext.current().put(PlatformCommonKeys.RESPONSE, this.coreDeviceManagementClient.findScheduledTasks(request));
}
Also used : FindScheduledTasksRequest(org.opensmartgridplatform.adapter.ws.schema.core.devicemanagement.FindScheduledTasksRequest)

Aggregations

FindScheduledTasksRequest (org.opensmartgridplatform.adapter.ws.schema.core.devicemanagement.FindScheduledTasksRequest)2 When (io.cucumber.java.en.When)1 FindScheduledTasksResponse (org.opensmartgridplatform.adapter.ws.schema.core.devicemanagement.FindScheduledTasksResponse)1 WebServiceSecurityException (org.opensmartgridplatform.shared.exceptionhandling.WebServiceSecurityException)1