use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.ClearMBusStatusOnAllChannelsRequest in project open-smart-grid-platform by OSGP.
the class ClearMBusStatusOnAllChannelsSteps method theBundleRequestContainsAClearMBusStatusOnAllChannelsAction.
@When("^the clear M-Bus status on all channels request is received$")
public void theBundleRequestContainsAClearMBusStatusOnAllChannelsAction(final Map<String, String> requestData) throws Throwable {
final ClearMBusStatusOnAllChannelsRequest request = new ClearMBusStatusOnAllChannelsRequest();
request.setClearMBusStatusOnAllChannelsRequestData(new ClearMBusStatusOnAllChannelsRequestData());
request.setDeviceIdentification(requestData.get(PlatformSmartmeteringKeys.KEY_DEVICE_IDENTIFICATION));
final ClearMBusStatusOnAllChannelsAsyncResponse asyncResponse = this.managementRequestClient.doRequest(request);
assertThat(asyncResponse).as("AsyncResponse should not be null").isNotNull();
ScenarioContext.current().put(PlatformSmartmeteringKeys.KEY_CORRELATION_UID, asyncResponse.getCorrelationUid());
}
Aggregations