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