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