Search in sources :

Example 1 with GetFirmwareVersionGasAsyncRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionGasAsyncRequest in project open-smart-grid-platform by OSGP.

the class GetFirmwareVersionGasRequestFactory method fromScenarioContext.

public static GetFirmwareVersionGasAsyncRequest fromScenarioContext() {
    final GetFirmwareVersionGasAsyncRequest gasAsyncRequest = new GetFirmwareVersionGasAsyncRequest();
    gasAsyncRequest.setCorrelationUid(RequestFactoryHelper.getCorrelationUidFromScenarioContext());
    gasAsyncRequest.setDeviceIdentification(RequestFactoryHelper.getDeviceIdentificationFromScenarioContext());
    return gasAsyncRequest;
}
Also used : GetFirmwareVersionGasAsyncRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionGasAsyncRequest)

Example 2 with GetFirmwareVersionGasAsyncRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionGasAsyncRequest in project open-smart-grid-platform by OSGP.

the class GetFirmwareVersion method theFirmwareVersionGasResultShouldBeReturned.

@Then("^the firmware version gas result should be returned$")
public void theFirmwareVersionGasResultShouldBeReturned(final Map<String, String> settings) throws Throwable {
    final GetFirmwareVersionGasAsyncRequest gasAsyncRequest = new GetFirmwareVersionGasAsyncRequest();
    gasAsyncRequest.setCorrelationUid(RequestFactoryHelper.getCorrelationUidFromScenarioContext());
    gasAsyncRequest.setDeviceIdentification(settings.get(PlatformSmartmeteringKeys.DEVICE_IDENTIFICATION));
    final GetFirmwareVersionGasResponse gasResponse = this.smartMeteringConfigurationClient.retrieveGetFirmwareVersionGasResponse(gasAsyncRequest);
    assertThat(gasResponse.getResult()).as("Get firmware version response has result null").isNotNull();
    assertThat(gasResponse.getResult()).as("Response should be OK").isEqualTo(OsgpResultType.OK);
    final FirmwareVersionGas firmwareVersion = gasResponse.getFirmwareVersion();
    this.checkFirmwareVersionGasResult(settings, firmwareVersion);
}
Also used : FirmwareVersionGas(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.FirmwareVersionGas) GetFirmwareVersionGasAsyncRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionGasAsyncRequest) GetFirmwareVersionGasResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionGasResponse) Then(io.cucumber.java.en.Then)

Aggregations

GetFirmwareVersionGasAsyncRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionGasAsyncRequest)2 Then (io.cucumber.java.en.Then)1 FirmwareVersionGas (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.FirmwareVersionGas)1 GetFirmwareVersionGasResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionGasResponse)1