Search in sources :

Example 1 with SetEncryptionKeyExchangeOnGMeterRequest

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

the class SetEncryptionKeyExchangeOnGMeterSteps method theExchangeUserKeyRequestIsReceived.

@When("^the exchange user key request is received$")
public void theExchangeUserKeyRequestIsReceived(final Map<String, String> requestData) throws Throwable {
    final SetEncryptionKeyExchangeOnGMeterRequest setEncryptionKeyExchangeOnGMeterRequest = SetEncryptionKeyExchangeOnGMeterRequestFactory.fromParameterMap(requestData);
    final SetEncryptionKeyExchangeOnGMeterAsyncResponse setEncryptionKeyExchangeOnGMeterAsyncResponse = this.smartMeteringConfigurationClient.setEncryptionKeyExchangeOnGMeter(setEncryptionKeyExchangeOnGMeterRequest);
    assertThat(setEncryptionKeyExchangeOnGMeterAsyncResponse).as("Set encryptionKey exchange on GMeter async response should not be null").isNotNull();
    ScenarioContext.current().put(PlatformSmartmeteringKeys.KEY_CORRELATION_UID, setEncryptionKeyExchangeOnGMeterAsyncResponse.getCorrelationUid());
}
Also used : SetEncryptionKeyExchangeOnGMeterAsyncResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetEncryptionKeyExchangeOnGMeterAsyncResponse) SetEncryptionKeyExchangeOnGMeterRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetEncryptionKeyExchangeOnGMeterRequest) When(io.cucumber.java.en.When)

Example 2 with SetEncryptionKeyExchangeOnGMeterRequest

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

the class SetEncryptionKeyExchangeOnGMeterRequestFactory method fromParameterMap.

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

Aggregations

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