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));
}
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));
}
Aggregations