Search in sources :

Example 6 with BundleResponse

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

the class BundleSteps method assertSameOrder.

private void assertSameOrder(final BundleRequest bundleRequest, final BundleResponse bundleResponse) {
    final int actionsSize = bundleRequest.getActions().getActionList().size();
    for (int i = 0; i < actionsSize; i++) {
        final Action action = bundleRequest.getActions().getActionList().get(i);
        final Response response = bundleResponse.getAllResponses().getResponseList().get(i);
        assertThat(response.getClass()).isEqualTo(REQUEST_RESPONSE_MAP.get(action.getClass()));
    }
}
Also used : BundleAsyncResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.BundleAsyncResponse) ActualMeterReadsResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActualMeterReadsResponse) GetConfigurationObjectResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.GetConfigurationObjectResponse) BundleResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.BundleResponse) ReadAlarmRegisterResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ReadAlarmRegisterResponse) GetMbusEncryptionKeyStatusResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.GetMbusEncryptionKeyStatusResponse) ActionResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse) ScanMbusChannelsResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ScanMbusChannelsResponse) AdministrativeStatusResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.AdministrativeStatusResponse) AssociationLnObjectsResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.AssociationLnObjectsResponse) FindEventsResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.FindEventsResponse) Response(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response) FaultResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.FaultResponse) Action(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Action)

Aggregations

BundleResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.BundleResponse)6 Then (io.cucumber.java.en.Then)2 ActualMeterReadsResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActualMeterReadsResponse)2 AdministrativeStatusResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.AdministrativeStatusResponse)2 BundleRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.BundleRequest)2 FindEventsResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.FindEventsResponse)2 GetMbusEncryptionKeyStatusResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.GetMbusEncryptionKeyStatusResponse)2 ReadAlarmRegisterResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ReadAlarmRegisterResponse)2 ScanMbusChannelsResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ScanMbusChannelsResponse)2 Response (org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response)2 ConfigurableMapper (ma.glasnost.orika.impl.ConfigurableMapper)1 ActionResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActionResponse)1 ActualMeterReadsGasResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.ActualMeterReadsGasResponse)1 AllResponses (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.AllResponses)1 AssociationLnObjectsResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.AssociationLnObjectsResponse)1 BundleAsyncRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.BundleAsyncRequest)1 BundleAsyncResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.BundleAsyncResponse)1 FaultResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.FaultResponse)1 GetConfigurationObjectResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.GetConfigurationObjectResponse)1 GetFirmwareVersionGasResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.GetFirmwareVersionGasResponse)1