use of io.cucumber.java.en.Given 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);
}
use of io.cucumber.java.en.Given in project open-smart-grid-platform by OSGP.
the class BundleSteps method aABundleRequest.
@Given("^a bundle request$")
public void aABundleRequest(final Map<String, String> settings) throws Throwable {
final BundleRequest request = new BundleRequest();
request.setDeviceIdentification(getString(settings, PlatformSmartmeteringKeys.DEVICE_IDENTIFICATION, PlatformSmartmeteringDefaults.DEVICE_IDENTIFICATION));
final Actions actions = new Actions();
request.setActions(actions);
ScenarioContext.current().put(PlatformSmartmeteringKeys.BUNDLE_REQUEST, request);
}
use of io.cucumber.java.en.Given in project open-smart-grid-platform by OSGP.
the class BundledFindEventsSteps method theBundleRequestContainsAFindEventsAction.
@Given("^the bundle request contains a find events action with parameters$")
public void theBundleRequestContainsAFindEventsAction(final Map<String, String> parameters) throws Throwable {
final FindEventsRequest action = new FindEventsRequestBuilder().fromParameterMap(parameters).build();
this.addActionToBundleRequest(action);
}
use of io.cucumber.java.en.Given in project open-smart-grid-platform by OSGP.
the class BundledFindEventsSteps method theBundleRequestContainsAFindEventsAction.
@Given("^the bundle request contains a find events action$")
public void theBundleRequestContainsAFindEventsAction() throws Throwable {
final FindEventsRequest action = new FindEventsRequestBuilder().withDefaults().build();
this.addActionToBundleRequest(action);
}
use of io.cucumber.java.en.Given in project open-smart-grid-platform by OSGP.
the class BundledSetAlarmNotificationsSteps method theBundleRequestContainsASetAlarmNotificationsAction.
@Given("^the bundle request contains a set alarm notifications action with parameters$")
public void theBundleRequestContainsASetAlarmNotificationsAction(final Map<String, String> parameters) throws Throwable {
final SetAlarmNotificationsRequest action = new SetAlarmNotificationsRequestBuilder().fromParameterMap(parameters).build();
this.addActionToBundleRequest(action);
}
Aggregations