Search in sources :

Example 1 with GetFirmwareVersionResponse

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

the class BundledGetFirmwareVersionSteps method theBundleResponseShouldContainAGetFirmwareVersionResponse.

@Then("^the bundle response should contain a get firmware version response$")
public void theBundleResponseShouldContainAGetFirmwareVersionResponse(final Map<String, String> settings) throws Throwable {
    final Response response = this.getNextBundleResponse();
    assertThat(response).isInstanceOf(GetFirmwareVersionResponse.class);
    final GetFirmwareVersionResponse getFirmwareVersionResponse = (GetFirmwareVersionResponse) response;
    final List<FirmwareVersion> firmwareVersions = getFirmwareVersionResponse.getFirmwareVersions();
    this.getFirmwareVersionSteps.checkFirmwareVersionResult(settings, firmwareVersions);
}
Also used : GetFirmwareVersionGasResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.GetFirmwareVersionGasResponse) Response(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response) GetFirmwareVersionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.GetFirmwareVersionResponse) GetFirmwareVersionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.GetFirmwareVersionResponse) GetFirmwareVersion(org.opensmartgridplatform.cucumber.platform.smartmetering.glue.steps.ws.smartmetering.smartmeteringconfiguration.GetFirmwareVersion) FirmwareVersion(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.FirmwareVersion) Then(io.cucumber.java.en.Then)

Aggregations

Then (io.cucumber.java.en.Then)1 GetFirmwareVersionGasResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.GetFirmwareVersionGasResponse)1 GetFirmwareVersionResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.GetFirmwareVersionResponse)1 Response (org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response)1 FirmwareVersion (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.FirmwareVersion)1 GetFirmwareVersion (org.opensmartgridplatform.cucumber.platform.smartmetering.glue.steps.ws.smartmetering.smartmeteringconfiguration.GetFirmwareVersion)1