Search in sources :

Example 1 with GetFirmwareVersionAsyncRequest

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);
}
Also used : GetFirmwareVersionAsyncRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionAsyncRequest) GetFirmwareVersionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionResponse) FirmwareVersion(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.FirmwareVersion) Then(io.cucumber.java.en.Then)

Example 2 with GetFirmwareVersionAsyncRequest

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

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

Aggregations

GetFirmwareVersionAsyncRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionAsyncRequest)3 Then (io.cucumber.java.en.Then)1 FirmwareVersion (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.FirmwareVersion)1 GetFirmwareVersionResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetFirmwareVersionResponse)1