Search in sources :

Example 1 with GetFirmwareVersionRequest

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

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

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

Aggregations

GetFirmwareVersionRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionRequest)3 When (io.cucumber.java.en.When)1 GetFirmwareVersionAsyncResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionAsyncResponse)1