use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetRandomisationSettingsRequest in project open-smart-grid-platform by OSGP.
the class SetRandomisationSettings method theSetRandomisationSettingsRequestIsReceived.
@When("the set randomisation settings request is received")
public void theSetRandomisationSettingsRequestIsReceived(final Map<String, String> parameters) throws WebServiceSecurityException {
final SetRandomisationSettingsRequest request = SetRandomisationSettingsFactory.fromParameterMap(parameters);
final SetRandomisationSettingsAsyncResponse asyncResponse = this.smartMeteringConfigurationClient.setRandomisationSettings(request);
assertThat(asyncResponse).isNotNull();
ScenarioContext.current().put(PlatformSmartmeteringKeys.KEY_CORRELATION_UID, asyncResponse.getCorrelationUid());
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetRandomisationSettingsRequest in project open-smart-grid-platform by OSGP.
the class SetRandomisationSettingsFactory method fromParameterMap.
public static SetRandomisationSettingsRequest fromParameterMap(final Map<String, String> parameters) {
final SetRandomisationSettingsRequest request = new SetRandomisationSettingsRequest();
request.setDeviceIdentification(parameters.get(PlatformSmartmeteringKeys.KEY_DEVICE_IDENTIFICATION));
request.setSetRandomisationSettingsData(createRequestData(parameters));
return request;
}
Aggregations