Search in sources :

Example 6 with ActionResponse

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

the class BundledSetConfigurationObjectSteps method theBundleResponseShouldContainASetConfigurationObjectResponse.

@Then("^the bundle response should contain a set configuration object response with values$")
public void theBundleResponseShouldContainASetConfigurationObjectResponse(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 7 with ActionResponse

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

the class BundledSynchronizeTimeSteps method theBundleResponseShouldContainASynchronizeTimeResponse.

@Then("^the bundle response should contain a synchronize time response$")
public void theBundleResponseShouldContainASynchronizeTimeResponse() 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 8 with ActionResponse

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

the class BundledScanMbusChannelsSteps method theBundleResponseShouldContainAScanMbusChannelsResponse.

@Then("^the bundle response should contain a scan mbus channels response$")
public void theBundleResponseShouldContainAScanMbusChannelsResponse() throws Throwable {
    final Response response = this.getNextBundleResponse();
    assertThat(response instanceof ActionResponse).as("Not a valid response").isTrue();
}
Also used : ScanMbusChannelsResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ScanMbusChannelsResponse) 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 9 with ActionResponse

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

the class BundledGetSpecificAttributeValueSteps method theBundleResponseShouldContainAGetSpecificAttributeValueResponse.

@Then("^the bundle response should contain a get specific attribute value response$")
public void theBundleResponseShouldContainAGetSpecificAttributeValueResponse() 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 10 with ActionResponse

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$")
public void theBundleResponseShouldContainASetActivityCalendarResponse() 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