use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.CoupleMbusDeviceRequest in project open-smart-grid-platform by OSGP.
the class CoupleDeviceSteps method theCoupleGMeterToEMeterRequestOnChannelIsReceivedForAnUnknownGateway.
@When("^the Couple G-meter \"([^\"]*)\" to E-meter \"([^\"]*)\" request is received for an unknown gateway$")
public void theCoupleGMeterToEMeterRequestOnChannelIsReceivedForAnUnknownGateway(final String gasMeter, final String eMeter) throws WebServiceSecurityException {
final CoupleMbusDeviceRequest request = CoupleMbusDeviceRequestFactory.forGatewayMbusDevice(eMeter, gasMeter);
try {
this.smartMeteringInstallationClient.coupleMbusDevice(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.CoupleMbusDeviceRequest in project open-smart-grid-platform by OSGP.
the class CoupleDeviceSteps method theCoupleGMeterRequestOnChannelIsReceivedForAnInactiveDevice.
@When("^the Couple G-meter \"([^\"]*)\" to E-meter \"([^\"]*)\" request is received for an inactive device$")
public void theCoupleGMeterRequestOnChannelIsReceivedForAnInactiveDevice(final String gasMeter, final String eMeter) throws WebServiceSecurityException {
final CoupleMbusDeviceRequest request = CoupleMbusDeviceRequestFactory.forGatewayMbusDevice(eMeter, gasMeter);
try {
this.smartMeteringInstallationClient.coupleMbusDevice(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.CoupleMbusDeviceRequest in project open-smart-grid-platform by OSGP.
the class CoupleMbusDeviceRequestFactory method forGatewayMbusDevice.
public static CoupleMbusDeviceRequest forGatewayMbusDevice(final String gatewayDeviceIdentification, final String mbusDeviceIdentification) {
final CoupleMbusDeviceRequest coupleMbusDeviceRequest = new CoupleMbusDeviceRequest();
coupleMbusDeviceRequest.setDeviceIdentification(gatewayDeviceIdentification);
coupleMbusDeviceRequest.setMbusDeviceIdentification(mbusDeviceIdentification);
return coupleMbusDeviceRequest;
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.CoupleMbusDeviceRequest in project open-smart-grid-platform by OSGP.
the class CoupleDeviceSteps method theCoupleGMeterRequestIsReceivedForEMeter.
@When("^the Couple G-meter \"([^\"]*)\" request is received for E-meter \"([^\"]*)\"$")
public void theCoupleGMeterRequestIsReceivedForEMeter(final String gasMeter, final String eMeter) throws WebServiceSecurityException {
final CoupleMbusDeviceRequest request = CoupleMbusDeviceRequestFactory.forGatewayMbusDevice(eMeter, gasMeter);
final CoupleMbusDeviceAsyncResponse asyncResponse = this.smartMeteringInstallationClient.coupleMbusDevice(request);
this.checkAndSaveCorrelationId(asyncResponse.getCorrelationUid());
}
Aggregations