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