use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response in project open-smart-grid-platform by OSGP.
the class BundledSetAdministrativeStatusSteps method theBundleResponseShouldContainASetAdministrativeStatusResponse.
@Then("^the bundle response should contain a set administrative status response$")
public void theBundleResponseShouldContainASetAdministrativeStatusResponse() throws Throwable {
final Response response = this.getNextBundleResponse();
assertThat(response instanceof ActionResponse).as("Not a valid response").isTrue();
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response in project open-smart-grid-platform by OSGP.
the class BundledSetPushSetupAlarmSteps method theBundleResponseShouldContainASetPushSetupAlarmResponse.
@Then("^the bundle response should contain a set push setup alarm response with values$")
public void theBundleResponseShouldContainASetPushSetupAlarmResponse(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.common.Response in project open-smart-grid-platform by OSGP.
the class BundledSetPushSetupAlarmSteps method theBundleResponseShouldContainASetPushSetupAlarmResponse.
@Then("^the bundle response should contain a set push setup alarm response$")
public void theBundleResponseShouldContainASetPushSetupAlarmResponse() throws Throwable {
final Response response = this.getNextBundleResponse();
assertThat(response instanceof ActionResponse).as("Not a valid response").isTrue();
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response in project open-smart-grid-platform by OSGP.
the class BundledSetSpecialDaysSteps method theBundleResponseShouldContainASetSpecialDaysResponse.
@Then("^the bundle response should contain a set special days response$")
public void theBundleResponseShouldContainASetSpecialDaysResponse() throws Throwable {
final Response response = this.getNextBundleResponse();
assertThat(response instanceof ActionResponse).as("Not a valid response").isTrue();
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response in project open-smart-grid-platform by OSGP.
the class BundleSteps method theBundleResponseShouldBeOK.
@Then("the bundle response should be OK")
public void theBundleResponseShouldBeOK() throws Throwable {
final Response response = this.getNextBundleResponse();
assertThat(response).isInstanceOf(ActionResponse.class);
assertThat(response.getResult()).isEqualTo(OsgpResultType.OK);
}
Aggregations