Search in sources :

Example 1 with GetGsmDiagnosticRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.GetGsmDiagnosticRequest in project open-smart-grid-platform by OSGP.

the class GetGsmDiagnostic method aGetGsmDiagnosticRequestIsReceived.

@When("^a get gsm diagnostic request is received$")
public void aGetGsmDiagnosticRequestIsReceived(final Map<String, String> settings) throws Throwable {
    final GetGsmDiagnosticRequest request = GetGsmDiagnosticRequestFactory.fromParameterMap(settings);
    final GetGsmDiagnosticAsyncResponse asyncResponse = this.smManagementRequestClient.doRequest(request);
    assertThat(asyncResponse).as("getGsmDiagnosticAsyncResponse should not be null").isNotNull();
    ScenarioContext.current().put(PlatformKeys.KEY_CORRELATION_UID, asyncResponse.getCorrelationUid());
}
Also used : GetGsmDiagnosticAsyncResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.GetGsmDiagnosticAsyncResponse) GetGsmDiagnosticRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.GetGsmDiagnosticRequest) When(io.cucumber.java.en.When)

Example 2 with GetGsmDiagnosticRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.GetGsmDiagnosticRequest in project open-smart-grid-platform by OSGP.

the class GetGsmDiagnosticRequestFactory method fromParameterMap.

public static GetGsmDiagnosticRequest fromParameterMap(final Map<String, String> settings) {
    final GetGsmDiagnosticRequest request = new GetGsmDiagnosticRequest();
    final GetGsmDiagnosticRequestData requestData = new GetGsmDiagnosticRequestData();
    request.setDeviceIdentification(settings.get(PlatformKeys.KEY_DEVICE_IDENTIFICATION));
    request.setGetGsmDiagnosticRequestData(requestData);
    return request;
}
Also used : GetGsmDiagnosticRequestData(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.GetGsmDiagnosticRequestData) GetGsmDiagnosticRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.GetGsmDiagnosticRequest)

Aggregations

GetGsmDiagnosticRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.GetGsmDiagnosticRequest)2 When (io.cucumber.java.en.When)1 GetGsmDiagnosticAsyncResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.GetGsmDiagnosticAsyncResponse)1 GetGsmDiagnosticRequestData (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.GetGsmDiagnosticRequestData)1