Search in sources :

Example 1 with DisableDebuggingRequest

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

the class EnableAndDisableDebugging method theDisableDebugRequestIsReceived.

@When("^the disable Debug request is received$")
public void theDisableDebugRequestIsReceived(final Map<String, String> requestData) throws Throwable {
    final DisableDebuggingRequest disableDebuggingRequest = DisableDebuggingRequestFactory.fromParameterMap(requestData);
    final DisableDebuggingAsyncResponse disableDebuggingAsyncResponse = this.smartMeteringManagementRequestClientDisableDebugging.doRequest(disableDebuggingRequest);
    assertThat(disableDebuggingAsyncResponse).as("AsyncResponse should not be null").isNotNull();
    ScenarioContext.current().put(PlatformSmartmeteringKeys.KEY_CORRELATION_UID, disableDebuggingAsyncResponse.getCorrelationUid());
}
Also used : DisableDebuggingAsyncResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.DisableDebuggingAsyncResponse) DisableDebuggingRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.DisableDebuggingRequest) When(io.cucumber.java.en.When)

Example 2 with DisableDebuggingRequest

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

the class DisableDebuggingRequestFactory method fromParameterMap.

public static DisableDebuggingRequest fromParameterMap(final Map<String, String> requestParameters) {
    final DisableDebuggingRequest disableDebuggingRequest = new DisableDebuggingRequest();
    disableDebuggingRequest.setDeviceIdentification(requestParameters.get(PlatformSmartmeteringKeys.KEY_DEVICE_IDENTIFICATION));
    return disableDebuggingRequest;
}
Also used : DisableDebuggingRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.DisableDebuggingRequest)

Aggregations

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