Search in sources :

Example 1 with SetRandomisationSettingsRequest

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());
}
Also used : SetRandomisationSettingsRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetRandomisationSettingsRequest) SetRandomisationSettingsAsyncResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetRandomisationSettingsAsyncResponse) When(io.cucumber.java.en.When)

Example 2 with SetRandomisationSettingsRequest

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;
}
Also used : SetRandomisationSettingsRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetRandomisationSettingsRequest)

Aggregations

SetRandomisationSettingsRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetRandomisationSettingsRequest)2 When (io.cucumber.java.en.When)1 SetRandomisationSettingsAsyncResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetRandomisationSettingsAsyncResponse)1