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;
}
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);
}
Aggregations