Search in sources :

Example 1 with SetDeviceCommunicationSettingsRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.SetDeviceCommunicationSettingsRequest in project open-smart-grid-platform by OSGP.

the class SetDeviceCommunicationSettingsRequestFactory method fromParameterMap.

public static SetDeviceCommunicationSettingsRequest fromParameterMap(final Map<String, String> requestParameters) {
    final SetDeviceCommunicationSettingsRequest setDeviceCommunicationSettingsRequest = new SetDeviceCommunicationSettingsRequest();
    setDeviceCommunicationSettingsRequest.setDeviceIdentification(requestParameters.get(PlatformSmartmeteringKeys.KEY_DEVICE_IDENTIFICATION));
    setDeviceCommunicationSettingsRequest.setSetDeviceCommunicationSettingsData(SetDeviceCommunicationSettingsRequestDataFactory.fromParameterMap(requestParameters));
    return setDeviceCommunicationSettingsRequest;
}
Also used : SetDeviceCommunicationSettingsRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.SetDeviceCommunicationSettingsRequest)

Example 2 with SetDeviceCommunicationSettingsRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.SetDeviceCommunicationSettingsRequest in project open-smart-grid-platform by OSGP.

the class SetDeviceCommunicationSettingsSteps method theSetDeviceCommunicationSettingsRequestIsReceived.

@When("^the set device communication settings request is received$")
public void theSetDeviceCommunicationSettingsRequestIsReceived(final Map<String, String> requestData) throws Throwable {
    final SetDeviceCommunicationSettingsRequest setDeviceCommunicationSettingsRequest = SetDeviceCommunicationSettingsRequestFactory.fromParameterMap(requestData);
    final SetDeviceCommunicationSettingsAsyncResponse setDeviceCommunicationSettingsAsyncResponse = this.smManagementRequestClientSetDeviceCommunicationSettings.doRequest(setDeviceCommunicationSettingsRequest);
    assertThat(setDeviceCommunicationSettingsAsyncResponse).as("setDeviceCommunicationSettingsAsyncResponse should not be null").isNotNull();
    ScenarioContext.current().put(PlatformSmartmeteringKeys.KEY_CORRELATION_UID, setDeviceCommunicationSettingsAsyncResponse.getCorrelationUid());
}
Also used : SetDeviceCommunicationSettingsAsyncResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.SetDeviceCommunicationSettingsAsyncResponse) SetDeviceCommunicationSettingsRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.SetDeviceCommunicationSettingsRequest) When(io.cucumber.java.en.When)

Aggregations

SetDeviceCommunicationSettingsRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.SetDeviceCommunicationSettingsRequest)2 When (io.cucumber.java.en.When)1 SetDeviceCommunicationSettingsAsyncResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.SetDeviceCommunicationSettingsAsyncResponse)1