use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.GetConfigurationObjectResponse in project open-smart-grid-platform by OSGP.
the class BundledGetConfigurationObjectSteps method theBundleResponseShouldContainAConfigurationObjectResponse.
@Then("^the bundle response should contain a get configuration object response$")
public void theBundleResponseShouldContainAConfigurationObjectResponse() throws Throwable {
final Response response = this.getNextBundleResponse();
assertThat(response instanceof GetConfigurationObjectResponse).as("response should be a GetConfigurationResponse object").isTrue();
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.GetConfigurationObjectResponse in project open-smart-grid-platform by OSGP.
the class BundledGetConfigurationObjectSteps method theBundleResponseShouldContainAConfigurationObjectResponse.
@Then("^the bundle response should contain a get configuration object response with values$")
public void theBundleResponseShouldContainAConfigurationObjectResponse(final Map<String, String> values) throws Throwable {
final Response response = this.getNextBundleResponse();
assertThat(response instanceof GetConfigurationObjectResponse).as("response should be a GetConfigurationResponse object").isTrue();
final ConfigurationObject configurationObject = ((GetConfigurationObjectResponse) response).getConfigurationObject();
assertThat(configurationObject.getGprsOperationMode().toString()).as("The gprs operation mode is not equal").isEqualTo(values.get("GprsOperationMode"));
configurationObject.getConfigurationFlags().getConfigurationFlag().forEach(f -> this.testConfigurationFlag(f, values));
}
Aggregations