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