use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetClockConfigurationRequest in project open-smart-grid-platform by OSGP.
the class SetClockConfiguration method theSetClockConfigurationRequestIsReceived.
@When("^the SetClockConfiguration request is received$")
public void theSetClockConfigurationRequestIsReceived(final Map<String, String> settings) throws Throwable {
final SetClockConfigurationRequest request = SetClockConfigurationRequestFactory.fromParameterMap(settings);
final SetClockConfigurationAsyncResponse asyncResponse = this.client.setClockConfiguration(request);
assertThat(asyncResponse).isNotNull();
ScenarioContextHelper.saveAsyncResponse(asyncResponse);
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetClockConfigurationRequest in project open-smart-grid-platform by OSGP.
the class SetClockConfigurationRequestFactory method fromParameterMap.
public static SetClockConfigurationRequest fromParameterMap(final Map<String, String> parameters) {
final SetClockConfigurationRequest setClockConfigurationRequest = new SetClockConfigurationRequest();
setClockConfigurationRequest.setDeviceIdentification(getString(parameters, PlatformSmartmeteringKeys.DEVICE_IDENTIFICATION, PlatformSmartmeteringDefaults.DEVICE_IDENTIFICATION));
setClockConfigurationRequest.setSetClockConfigurationData(SetClockConfigurationRequestDataFactory.fromParameterMap(parameters));
return setClockConfigurationRequest;
}
Aggregations