Search in sources :

Example 1 with FindMessageLogsRequest

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

Example 2 with FindMessageLogsRequest

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

Aggregations

FindMessageLogsRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.FindMessageLogsRequest)2 When (io.cucumber.java.en.When)1 FindMessageLogsAsyncResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.FindMessageLogsAsyncResponse)1