Search in sources :

Example 1 with DecoupleMbusDeviceByChannelResponse

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

the class BundledDecoupleMbusDeviceByChannelSteps method theDecoupleMbusDeviceByChannelBundleResponseIsWithoutMbusDevice.

@Then("^the Decouple M-Bus Device By Channel bundle response is \"([^\"]*)\" without Mbus Device$")
public void theDecoupleMbusDeviceByChannelBundleResponseIsWithoutMbusDevice(final String result) throws Throwable {
    final Response response = this.getNextBundleResponse();
    assertThat(response).isInstanceOf(DecoupleMbusDeviceByChannelResponse.class);
    assertThat(((DecoupleMbusDeviceByChannelResponse) response).getMbusDeviceIdentification()).as("MbusDeviceIdentification").isNull();
    assertThat(response.getResult()).as("Result").isEqualTo(OsgpResultType.valueOf(result));
}
Also used : DecoupleMbusDeviceByChannelResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.DecoupleMbusDeviceByChannelResponse) Response(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response) Then(io.cucumber.java.en.Then)

Example 2 with DecoupleMbusDeviceByChannelResponse

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

the class BundledDecoupleMbusDeviceByChannelSteps method theDecoupleMbusDeviceByChannelBundleResponseIsWithMbusDevice.

@Then("^the Decouple M-Bus Device By Channel bundle response is \"([^\"]*)\" with Mbus Device \"([^\"]*)\"$")
public void theDecoupleMbusDeviceByChannelBundleResponseIsWithMbusDevice(final String result, final String mbusDeviceIdentification) throws Throwable {
    final Response response = this.getNextBundleResponse();
    assertThat(response).isInstanceOf(DecoupleMbusDeviceByChannelResponse.class);
    assertThat(((DecoupleMbusDeviceByChannelResponse) response).getMbusDeviceIdentification()).as("MbusDeviceIdentification").isEqualTo(mbusDeviceIdentification);
    assertThat(response.getResult()).as("Result").isEqualTo(OsgpResultType.valueOf(result));
}
Also used : DecoupleMbusDeviceByChannelResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.DecoupleMbusDeviceByChannelResponse) Response(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response) Then(io.cucumber.java.en.Then)

Aggregations

Then (io.cucumber.java.en.Then)2 DecoupleMbusDeviceByChannelResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.DecoupleMbusDeviceByChannelResponse)2 Response (org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response)2