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;
}
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());
}
Aggregations