use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigureDefinableLoadProfileRequest in project open-smart-grid-platform by OSGP.
the class ConfigureDefinableLoadProfileRequestFactory method fromParameterMap.
public static ConfigureDefinableLoadProfileRequest fromParameterMap(final Map<String, String> parameters) {
final ConfigureDefinableLoadProfileRequest configureDefinableLoadProfileRequest = new ConfigureDefinableLoadProfileRequest();
configureDefinableLoadProfileRequest.setDeviceIdentification(getString(parameters, PlatformSmartmeteringKeys.DEVICE_IDENTIFICATION, PlatformSmartmeteringDefaults.DEVICE_IDENTIFICATION));
configureDefinableLoadProfileRequest.setDefinableLoadProfileConfigurationData(DefinableLoadProfileConfigurationDataFactory.fromParameterMap(parameters));
return configureDefinableLoadProfileRequest;
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigureDefinableLoadProfileRequest in project open-smart-grid-platform by OSGP.
the class ConfigureDefinableLoadProfileSteps method aConfigureDefinableLoadProfileRequestIsReceived.
@When("^a Configure Definable Load Profile request is received$")
public void aConfigureDefinableLoadProfileRequestIsReceived(final Map<String, String> settings) throws Throwable {
final ConfigureDefinableLoadProfileRequest request = ConfigureDefinableLoadProfileRequestFactory.fromParameterMap(settings);
final ConfigureDefinableLoadProfileAsyncResponse asyncResponse = this.client.configureDefinableLoadProfile(request);
assertThat(asyncResponse).isNotNull();
ScenarioContextHelper.saveAsyncResponse(asyncResponse);
}
Aggregations