use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.FindMessageLogsRequest in project open-smart-grid-platform by OSGP.
the class GetDebugInformation method theGetDebugInformationRequestIsReceived.
@When("^the get debug information request is received$")
public void theGetDebugInformationRequestIsReceived(final Map<String, String> requestData) throws Throwable {
final FindMessageLogsRequest findMessageLogsRequest = FindMessageLogsRequestFactory.fromParameterMap(requestData);
final FindMessageLogsAsyncResponse findMessageLogsAsyncResponse = this.smartMeteringManagementRequestClient.doRequest(findMessageLogsRequest);
assertThat(findMessageLogsAsyncResponse).as("AsyncResponse should not be null").isNotNull();
ScenarioContext.current().put(PlatformSmartmeteringKeys.KEY_CORRELATION_UID, findMessageLogsAsyncResponse.getCorrelationUid());
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.FindMessageLogsRequest in project open-smart-grid-platform by OSGP.
the class FindMessageLogsRequestFactory method fromParameterMap.
public static FindMessageLogsRequest fromParameterMap(final Map<String, String> requestParameters) {
final FindMessageLogsRequest findMessageLogsRequest = new FindMessageLogsRequest();
findMessageLogsRequest.setDeviceIdentification(requestParameters.get(PlatformSmartmeteringKeys.KEY_DEVICE_IDENTIFICATION));
return findMessageLogsRequest;
}
Aggregations