use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionAsyncRequest in project open-smart-grid-platform by OSGP.
the class GetFirmwareVersion method theFirmwareVersionResultShouldBeReturned.
@Then("^the firmware version result should be returned$")
public void theFirmwareVersionResultShouldBeReturned(final Map<String, String> settings) throws Throwable {
final GetFirmwareVersionAsyncRequest getFirmwareVersionAsyncRequest = FirmwareVersionRequestFactory.fromScenarioContext();
final GetFirmwareVersionResponse getFirmwareVersionResponse = this.smartMeteringConfigurationClient.retrieveGetFirmwareVersionResponse(getFirmwareVersionAsyncRequest);
assertThat(getFirmwareVersionResponse.getResult()).as("Get firmware version response has result null").isNotNull();
assertThat(getFirmwareVersionResponse.getResult()).as("Response should be OK").isEqualTo(OsgpResultType.OK);
final List<FirmwareVersion> firmwareVersions = getFirmwareVersionResponse.getFirmwareVersion();
this.checkFirmwareVersionResult(settings, firmwareVersions);
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionAsyncRequest in project open-smart-grid-platform by OSGP.
the class FirmwareVersionRequestFactory method fromScenarioContext.
public static GetFirmwareVersionAsyncRequest fromScenarioContext() {
final GetFirmwareVersionAsyncRequest getFirmwareVersionAsyncRequest = new GetFirmwareVersionAsyncRequest();
getFirmwareVersionAsyncRequest.setCorrelationUid(RequestFactoryHelper.getCorrelationUidFromScenarioContext());
getFirmwareVersionAsyncRequest.setDeviceIdentification(RequestFactoryHelper.getDeviceIdentificationFromScenarioContext());
return getFirmwareVersionAsyncRequest;
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionAsyncRequest in project open-smart-grid-platform by OSGP.
the class GetFirmwareVersionRequestFactory method fromScenarioContext.
public static GetFirmwareVersionAsyncRequest fromScenarioContext() {
final GetFirmwareVersionAsyncRequest getFirmwareVersionAsyncRequest = new GetFirmwareVersionAsyncRequest();
getFirmwareVersionAsyncRequest.setCorrelationUid(RequestFactoryHelper.getCorrelationUidFromScenarioContext());
getFirmwareVersionAsyncRequest.setDeviceIdentification(RequestFactoryHelper.getDeviceIdentificationFromScenarioContext());
return getFirmwareVersionAsyncRequest;
}
Aggregations