use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.AddDeviceAsyncRequest in project open-smart-grid-platform by OSGP.
the class FunctionalExceptionsSteps method theAddDeviceResponseForAnExistingDeviceIsReceived.
@Then("^the add device response for an existing device is received$")
public void theAddDeviceResponseForAnExistingDeviceIsReceived(final Map<String, String> responseParameters) throws Throwable {
final String correlationUid = (String) ScenarioContext.current().get(PlatformKeys.KEY_CORRELATION_UID);
final Map<String, String> extendedParameters = SettingsHelper.addDefault(responseParameters, PlatformKeys.KEY_CORRELATION_UID, correlationUid);
final AddDeviceAsyncRequest addDeviceAsyncRequest = AddDeviceRequestFactory.fromParameterMapAsync(extendedParameters);
try {
this.smartMeteringInstallationClient.getAddDeviceResponse(addDeviceAsyncRequest);
} catch (final Exception exception) {
ScenarioContext.current().put(PlatformKeys.RESPONSE, exception);
}
}
Aggregations