use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetPushSetupSmsRequest in project open-smart-grid-platform by OSGP.
the class SetPushSetupSmsRequestFactory method fromParameterMap.
public static SetPushSetupSmsRequest fromParameterMap(final Map<String, String> settings) {
final SetPushSetupSmsRequest request = new SetPushSetupSmsRequest();
request.setDeviceIdentification(settings.get(PlatformSmartmeteringKeys.KEY_DEVICE_IDENTIFICATION));
request.setSetPushSetupSmsRequestData(createRequestData(settings));
return request;
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetPushSetupSmsRequest in project open-smart-grid-platform by OSGP.
the class SetPushSetupSms method theSetPushSetupSmsRequestIsReceived.
@When("^the set PushSetupSms request is received$")
public void theSetPushSetupSmsRequestIsReceived(final Map<String, String> settings) throws Throwable {
final SetPushSetupSmsRequest setPushSetupSmsRequest = SetPushSetupSmsRequestFactory.fromParameterMap(settings);
final SetPushSetupSmsAsyncResponse setPushSetupSmsAsyncResponse = this.smartMeteringConfigurationClient.setPushSetupSms(setPushSetupSmsRequest);
LOGGER.info("Set push setup sms response is received {}", setPushSetupSmsAsyncResponse);
assertThat(setPushSetupSmsAsyncResponse).as("Set push setup sms response should not be null").isNotNull();
ScenarioContext.current().put(PlatformSmartmeteringKeys.KEY_CORRELATION_UID, setPushSetupSmsAsyncResponse.getCorrelationUid());
ScenarioContext.current().put(PlatformSmartmeteringKeys.HOSTNAME, settings.get(PlatformSmartmeteringKeys.HOSTNAME));
ScenarioContext.current().put(PlatformSmartmeteringKeys.PORT, settings.get(PlatformSmartmeteringKeys.PORT));
}
Aggregations