use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.DecoupleMbusDeviceRequest in project open-smart-grid-platform by OSGP.
the class DecoupleDeviceSteps method theDecoupleGMeterRequestIsReceived.
@When("^the Decouple G-meter \"([^\"]*)\" from E-meter \"([^\"]*)\" request is received$")
public void theDecoupleGMeterRequestIsReceived(final String gasMeter, final String eMeter) throws WebServiceSecurityException {
final DecoupleMbusDeviceRequest request = DecoupleMbusDeviceRequestFactory.forGatewayAndMbusDevice(eMeter, gasMeter);
final DecoupleMbusDeviceAsyncResponse asyncResponse = this.smartMeteringInstallationClient.decoupleMbusDevice(request);
this.checkAndSaveCorrelationId(asyncResponse.getCorrelationUid());
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.DecoupleMbusDeviceRequest in project open-smart-grid-platform by OSGP.
the class DecoupleDeviceSteps method theDecoupleGMeterFromEMeterRequestIsReceivedForAnUnknownDevice.
@When("^the Decouple G-meter \"([^\"]*)\" from E-meter \"([^\"]*)\" request is received for an unknown gateway$")
public void theDecoupleGMeterFromEMeterRequestIsReceivedForAnUnknownDevice(final String gasMeter, final String eMeter) throws WebServiceSecurityException {
final DecoupleMbusDeviceRequest request = DecoupleMbusDeviceRequestFactory.forGatewayAndMbusDevice(eMeter, gasMeter);
try {
this.smartMeteringInstallationClient.decoupleMbusDevice(request);
Assertions.fail("A SoapFaultClientException should be thrown");
} catch (final SoapFaultClientException e) {
ScenarioContext.current().put(PlatformKeys.RESPONSE, e);
}
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.DecoupleMbusDeviceRequest in project open-smart-grid-platform by OSGP.
the class DecoupleMbusDeviceRequestFactory method forGatewayAndMbusDevice.
public static DecoupleMbusDeviceRequest forGatewayAndMbusDevice(final String gatewayDeviceIdentification, final String mbusDeviceIdentification) {
final DecoupleMbusDeviceRequest decoupleMbusDeviceRequest = new DecoupleMbusDeviceRequest();
decoupleMbusDeviceRequest.setDeviceIdentification(gatewayDeviceIdentification);
decoupleMbusDeviceRequest.setMbusDeviceIdentification(mbusDeviceIdentification);
return decoupleMbusDeviceRequest;
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.DecoupleMbusDeviceRequest in project open-smart-grid-platform by OSGP.
the class DecoupleDeviceSteps method theDecoupleGMeterFromEMeterRequestIsReceivedForAnInactiveDevice.
@When("^the Decouple G-meter \"([^\"]*)\" from E-meter \"([^\"]*)\" request is received for an inactive gateway$")
public void theDecoupleGMeterFromEMeterRequestIsReceivedForAnInactiveDevice(final String gasMeter, final String eMeter) throws WebServiceSecurityException {
final DecoupleMbusDeviceRequest request = DecoupleMbusDeviceRequestFactory.forGatewayAndMbusDevice(eMeter, gasMeter);
try {
this.smartMeteringInstallationClient.decoupleMbusDevice(request);
Assertions.fail("A SoapFaultClientException should be thrown");
} catch (final SoapFaultClientException e) {
ScenarioContext.current().put(PlatformKeys.RESPONSE, e);
}
}
Aggregations