Search in sources :

Example 1 with ScanMbusChannelsRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.adhoc.ScanMbusChannelsRequest in project open-smart-grid-platform by OSGP.

the class ScanMbusChannelsRequestFactory method fromParameterMap.

public static ScanMbusChannelsRequest fromParameterMap(final Map<String, String> parameters) {
    final ScanMbusChannelsRequest request = new ScanMbusChannelsRequest();
    request.setDeviceIdentification(parameters.get(PlatformSmartmeteringKeys.DEVICE_IDENTIFICATION));
    return request;
}
Also used : ScanMbusChannelsRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.adhoc.ScanMbusChannelsRequest)

Example 2 with ScanMbusChannelsRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.adhoc.ScanMbusChannelsRequest in project open-smart-grid-platform by OSGP.

the class ScanMbusChannelsSteps method theScanMBusChannelsRequestIsReceived.

@When("^the scan M-Bus channels request is received$")
public void theScanMBusChannelsRequestIsReceived(final Map<String, String> settings) throws Throwable {
    final ScanMbusChannelsRequest request = ScanMbusChannelsRequestFactory.fromParameterMap(settings);
    final ScanMbusChannelsAsyncResponse asyncResponse = this.requestClient.doRequest(request);
    assertThat(asyncResponse).as("AsyncResponse should not be null").isNotNull();
    ScenarioContext.current().put(PlatformKeys.KEY_CORRELATION_UID, asyncResponse.getCorrelationUid());
}
Also used : ScanMbusChannelsRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.adhoc.ScanMbusChannelsRequest) ScanMbusChannelsAsyncResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.adhoc.ScanMbusChannelsAsyncResponse) When(io.cucumber.java.en.When)

Aggregations

ScanMbusChannelsRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.adhoc.ScanMbusChannelsRequest)2 When (io.cucumber.java.en.When)1 ScanMbusChannelsAsyncResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.adhoc.ScanMbusChannelsAsyncResponse)1