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