Search in sources :

Example 1 with ClearMBusStatusOnAllChannelsRequestData

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.ClearMBusStatusOnAllChannelsRequestData 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());
}
Also used : ClearMBusStatusOnAllChannelsRequestData(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.ClearMBusStatusOnAllChannelsRequestData) ClearMBusStatusOnAllChannelsRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.ClearMBusStatusOnAllChannelsRequest) ClearMBusStatusOnAllChannelsAsyncResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.ClearMBusStatusOnAllChannelsAsyncResponse) When(io.cucumber.java.en.When)

Aggregations

When (io.cucumber.java.en.When)1 ClearMBusStatusOnAllChannelsAsyncResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.ClearMBusStatusOnAllChannelsAsyncResponse)1 ClearMBusStatusOnAllChannelsRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.ClearMBusStatusOnAllChannelsRequest)1 ClearMBusStatusOnAllChannelsRequestData (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.ClearMBusStatusOnAllChannelsRequestData)1