Search in sources :

Example 1 with ActionResponse

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$")
public void theBundleResponseShouldContainASetAdministrativeStatusResponse() throws Throwable {
    final Response response = this.getNextBundleResponse();
    assertThat(response instanceof ActionResponse).as("Not a valid response").isTrue();
}
Also used : ActionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse) Response(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response) ActionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse) Then(io.cucumber.java.en.Then)

Example 2 with ActionResponse

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse 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));
}
Also used : ActionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse) Response(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response) ActionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse) Then(io.cucumber.java.en.Then)

Example 3 with ActionResponse

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse 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();
}
Also used : ActionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse) Response(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response) ActionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse) Then(io.cucumber.java.en.Then)

Example 4 with ActionResponse

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse 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();
}
Also used : ActionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse) Response(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response) ActionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse) Then(io.cucumber.java.en.Then)

Example 5 with ActionResponse

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

the class BundledSetAlarmNotificationsSteps method theBundleResponseShouldContainASetAlarmNotificationsResponse.

@Then("^the bundle response should contain a set alarm notifications response$")
public void theBundleResponseShouldContainASetAlarmNotificationsResponse() throws Throwable {
    final Response response = this.getNextBundleResponse();
    assertThat(response instanceof ActionResponse).as("Not a valid response").isTrue();
}
Also used : ActionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse) Response(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response) ActionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse) Then(io.cucumber.java.en.Then)

Aggregations

Then (io.cucumber.java.en.Then)20 ActionResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse)20 Response (org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response)20 ScanMbusChannelsResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ScanMbusChannelsResponse)1