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());
}
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;
}
Aggregations