use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionGasRequest in project open-smart-grid-platform by OSGP.
the class GetFirmwareVersion method theGetFirmwareVersionGasRequestIsReceived.
@When("^the get firmware version gas request is received$")
public void theGetFirmwareVersionGasRequestIsReceived(final Map<String, String> requestData) throws Throwable {
final GetFirmwareVersionGasRequest gasRequest = GetFirmwareVersionGasRequestFactory.fromParameterMap(requestData);
final GetFirmwareVersionGasAsyncResponse gasAsyncResponse = this.smartMeteringConfigurationClient.getFirmwareVersionGas(gasRequest);
assertThat(gasAsyncResponse).as("Get firmware version gas asyncResponse should not be null").isNotNull();
log.info("Get firmware version gas asyncResponse is received {}", gasAsyncResponse);
ScenarioContext.current().put(PlatformSmartmeteringKeys.KEY_CORRELATION_UID, gasAsyncResponse.getCorrelationUid());
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionGasRequest in project open-smart-grid-platform by OSGP.
the class GetFirmwareVersionGasRequestFactory method fromParameterMap.
public static GetFirmwareVersionGasRequest fromParameterMap(final Map<String, String> requestParameters) {
final GetFirmwareVersionGasRequest gasRequest = new GetFirmwareVersionGasRequest();
gasRequest.setDeviceIdentification(requestParameters.get(PlatformSmartmeteringKeys.KEY_DEVICE_IDENTIFICATION));
return gasRequest;
}
Aggregations