Search in sources :

Example 1 with EnableDebuggingRequest

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

the class EnableAndDisableDebugging method theEnableDebugRequestIsReceived.

@When("^the enable Debug request is received$")
public void theEnableDebugRequestIsReceived(final Map<String, String> requestData) throws Throwable {
    final EnableDebuggingRequest enableDebuggingRequest = EnableDebuggingRequestFactory.fromParameterMap(requestData);
    final EnableDebuggingAsyncResponse enableDebuggingAsyncResponse = this.smartMeteringManagementRequestClientEnableDebugging.doRequest(enableDebuggingRequest);
    assertThat(enableDebuggingAsyncResponse).as("AsyncResponse should not be null").isNotNull();
    ScenarioContext.current().put(PlatformSmartmeteringKeys.KEY_CORRELATION_UID, enableDebuggingAsyncResponse.getCorrelationUid());
}
Also used : EnableDebuggingAsyncResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.EnableDebuggingAsyncResponse) EnableDebuggingRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.EnableDebuggingRequest) When(io.cucumber.java.en.When)

Example 2 with EnableDebuggingRequest

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

the class EnableDebuggingRequestFactory method fromParameterMap.

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

Aggregations

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