Search in sources :

Example 1 with SetPushSetupAlarmRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetPushSetupAlarmRequest 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 SetPushSetupAlarmRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetPushSetupAlarmRequest 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)

Example 3 with SetPushSetupAlarmRequest

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

the class SetPushSetupAlarmRequestBuilder method build.

public SetPushSetupAlarmRequest build() {
    final SetPushSetupAlarmRequest request = new SetPushSetupAlarmRequest();
    final PushSetupAlarm pushSetupAlarm = new PushSetupAlarm();
    pushSetupAlarm.setHost(this.host);
    pushSetupAlarm.setPort(this.port);
    pushSetupAlarm.getPushObjectList().addAll(this.pushObjectList);
    request.setPushSetupAlarm(pushSetupAlarm);
    return request;
}
Also used : PushSetupAlarm(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.PushSetupAlarm) SetPushSetupAlarmRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetPushSetupAlarmRequest)

Aggregations

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