Search in sources :

Example 1 with SetClockConfigurationRequest

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);
}
Also used : SetClockConfigurationAsyncResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetClockConfigurationAsyncResponse) SetClockConfigurationRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetClockConfigurationRequest) When(io.cucumber.java.en.When)

Example 2 with SetClockConfigurationRequest

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;
}
Also used : SetClockConfigurationRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetClockConfigurationRequest)

Aggregations

SetClockConfigurationRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetClockConfigurationRequest)2 When (io.cucumber.java.en.When)1 SetClockConfigurationAsyncResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetClockConfigurationAsyncResponse)1