Search in sources :

Example 1 with SetPushSetupSmsRequest

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;
}
Also used : SetPushSetupSmsRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetPushSetupSmsRequest)

Example 2 with SetPushSetupSmsRequest

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));
}
Also used : SetPushSetupSmsAsyncResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetPushSetupSmsAsyncResponse) SetPushSetupSmsRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetPushSetupSmsRequest) When(io.cucumber.java.en.When)

Aggregations

SetPushSetupSmsRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetPushSetupSmsRequest)2 When (io.cucumber.java.en.When)1 SetPushSetupSmsAsyncResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetPushSetupSmsAsyncResponse)1