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