use of org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.SetActivityCalendarRequestBuilder in project open-smart-grid-platform by OSGP.
the class BundledSetActivityCalendarSteps method theBundleRequestContainsASetActivityCalendarAction.
@Given("^the bundle request contains a set activity calendar action$")
public void theBundleRequestContainsASetActivityCalendarAction() throws Throwable {
SetActivityCalendarRequest action;
if (ScenarioContext.current().get(PlatformSmartmeteringKeys.ACTIVITY_CALENDAR) == null) {
action = new SetActivityCalendarRequestBuilder().withDefaults().build();
} else {
final ActivityCalendar activityCalendar = (ActivityCalendar) ScenarioContext.current().get(PlatformSmartmeteringKeys.ACTIVITY_CALENDAR);
action = new SetActivityCalendarRequestBuilder().withActivityCalendar(activityCalendar).build();
}
this.addActionToBundleRequest(action);
}
Aggregations