Search in sources :

Example 1 with PowerQualityProfileData

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

the class BundledGetPowerQualityProfileDataSteps method theBundleResponseShouldContainAGetPowerQualityProfileResponse.

@Then("^the bundle response should contain a power quality profile response with values$")
public void theBundleResponseShouldContainAGetPowerQualityProfileResponse(final Map<String, String> values) throws Throwable {
    final Response response = this.getNextBundleResponse();
    assertThat(response).isInstanceOf(GetPowerQualityProfileResponse.class);
    final GetPowerQualityProfileResponse getPowerQualityProfileResponse = (GetPowerQualityProfileResponse) response;
    final PowerQualityProfileData powerQualityProfileData = getPowerQualityProfileResponse.getPowerQualityProfileDatas().get(0);
    this.assertEqualCaptureObjects(powerQualityProfileData.getCaptureObjectList().getCaptureObjects(), values);
    this.assertEqualProfileEntries(powerQualityProfileData.getProfileEntryList().getProfileEntries(), values);
}
Also used : Response(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response) GetPowerQualityProfileResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.GetPowerQualityProfileResponse) GetPowerQualityProfileResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.GetPowerQualityProfileResponse) PowerQualityProfileData(org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.PowerQualityProfileData) Then(io.cucumber.java.en.Then)

Aggregations

Then (io.cucumber.java.en.Then)1 Response (org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response)1 GetPowerQualityProfileResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.GetPowerQualityProfileResponse)1 PowerQualityProfileData (org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.PowerQualityProfileData)1