use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse in project open-smart-grid-platform by OSGP.
the class BundledSetActivityCalendarSteps method theBundleResponseShouldContainASetActivityCalendarResponse.
@Then("^the bundle response should contain a set activity calendar response with values$")
public void theBundleResponseShouldContainASetActivityCalendarResponse(final Map<String, String> values) throws Throwable {
final Response response = this.getNextBundleResponse();
assertThat(response instanceof ActionResponse).as("Not a valid response").isTrue();
assertThat(response.getResult().name()).as("Result is not as expected.").isEqualTo(values.get(PlatformSmartmeteringKeys.RESULT));
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse in project open-smart-grid-platform by OSGP.
the class BundledGetAllAttributeValuesSteps method theBundleResponseShouldContainAGetAllAttributeValuesResponse.
@Then("^the bundle response should contain a get all attribute values response with values$")
public void theBundleResponseShouldContainAGetAllAttributeValuesResponse(final Map<String, String> values) throws Throwable {
final Response response = this.getNextBundleResponse();
assertThat(response instanceof ActionResponse).as("Not a valid response").isTrue();
assertThat(response.getResult().name()).as("Result is not as expected.").isEqualTo(values.get(PlatformSmartmeteringKeys.RESULT));
assertThat(StringUtils.isNotBlank(response.getResultString())).as("Result contains no data.").isTrue();
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse in project open-smart-grid-platform by OSGP.
the class BundledReplaceKeySteps method theBundleResponseShouldContainAGenerateReplaceKeysResponseWithValues.
@Then("the bundle response should contain a generate replace keys response with values")
public void theBundleResponseShouldContainAGenerateReplaceKeysResponseWithValues(final Map<String, String> values) throws Throwable {
final Response response = this.getNextBundleResponse();
assertThat(response instanceof ActionResponse).as("Not a valid response").isTrue();
assertThat(response.getResult().name()).as("Result is not as expected.").isEqualTo(values.get(PlatformSmartmeteringKeys.RESULT));
assertThat(response.getResultString()).as("ResultString is not as expected.").isEqualTo(values.get(PlatformSmartmeteringKeys.RESULT_STRING));
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse in project open-smart-grid-platform by OSGP.
the class BundledReplaceKeySteps method theBundleResponseShouldContainAReplaceKeysResponse.
@Then("^the bundle response should contain a replace keys response with values$")
public void theBundleResponseShouldContainAReplaceKeysResponse(final Map<String, String> values) throws Throwable {
final Response response = this.getNextBundleResponse();
assertThat(response instanceof ActionResponse).as("Not a valid response").isTrue();
assertThat(response.getResult().name()).as("Result is not as expected.").isEqualTo(values.get(PlatformSmartmeteringKeys.RESULT));
assertThat(response.getResultString()).as("ResultString is not as expected.").isEqualTo(values.get(PlatformSmartmeteringKeys.RESULT_STRING));
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse in project open-smart-grid-platform by OSGP.
the class BundledSetAdministrativeStatusSteps method theBundleResponseShouldContainASetAdministrativeStatusResponse.
@Then("^the bundle response should contain a set administrative status response with values$")
public void theBundleResponseShouldContainASetAdministrativeStatusResponse(final Map<String, String> values) throws Throwable {
final Response response = this.getNextBundleResponse();
assertThat(response instanceof ActionResponse).as("Not a valid response").isTrue();
assertThat(response.getResult().name()).as("Result is not as expected.").isEqualTo(values.get(PlatformSmartmeteringKeys.RESULT));
}
Aggregations