Search in sources :

Example 1 with SetPushSetupAlarmRequestBuilder

use of org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.SetPushSetupAlarmRequestBuilder in project open-smart-grid-platform by OSGP.

the class BundledSetPushSetupAlarmSteps method theBundleRequestContainsASetPushSetupAlarmAction.

@Given("^the bundle request contains a set push setup alarm action with parameters$")
public void theBundleRequestContainsASetPushSetupAlarmAction(final Map<String, String> parameters) throws Throwable {
    final SetPushSetupAlarmRequest action = new SetPushSetupAlarmRequestBuilder().fromParameterMap(parameters).build();
    this.addActionToBundleRequest(action);
}
Also used : SetPushSetupAlarmRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetPushSetupAlarmRequest) SetPushSetupAlarmRequestBuilder(org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.SetPushSetupAlarmRequestBuilder) Given(io.cucumber.java.en.Given)

Example 2 with SetPushSetupAlarmRequestBuilder

use of org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.SetPushSetupAlarmRequestBuilder in project open-smart-grid-platform by OSGP.

the class BundledSetPushSetupAlarmSteps method theBundleRequestContainsASetPushSetupAlarmAction.

@Given("^the bundle request contains a set push setup alarm action$")
public void theBundleRequestContainsASetPushSetupAlarmAction() throws Throwable {
    final SetPushSetupAlarmRequest action = new SetPushSetupAlarmRequestBuilder().withDefaults().build();
    this.addActionToBundleRequest(action);
}
Also used : SetPushSetupAlarmRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetPushSetupAlarmRequest) SetPushSetupAlarmRequestBuilder(org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.SetPushSetupAlarmRequestBuilder) Given(io.cucumber.java.en.Given)

Aggregations

Given (io.cucumber.java.en.Given)2 SetPushSetupAlarmRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetPushSetupAlarmRequest)2 SetPushSetupAlarmRequestBuilder (org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.SetPushSetupAlarmRequestBuilder)2