Search in sources :

Example 1 with GetFirmwareVersionGasRequest

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

Example 2 with GetFirmwareVersionGasRequest

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

Aggregations

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