@Test public void testGivenAnAlarmName() { cloudWatchStepDefinitions.givenAnAlarmName("alarmName"); }
@Given("^CloudWatch Alarm \"([^\"]*)\"$") public CloudWatchStepDefinitions givenAnAlarmName(String alarmName) { this.alarmName = alarmName; return this; }
CloudWatchStepDefinitions { @Given("^CloudWatch Alarm \"([^\"]*)\"$") public CloudWatchStepDefinitions givenAnAlarmName(String alarmName) { this.alarmName = alarmName; return this; } }
CloudWatchStepDefinitions { @Given("^CloudWatch Alarm \"([^\"]*)\"$") public CloudWatchStepDefinitions givenAnAlarmName(String alarmName) { this.alarmName = alarmName; return this; } CloudWatchStepDefinitions(); }
CloudWatchStepDefinitions { @Given("^CloudWatch Alarm \"([^\"]*)\"$") public CloudWatchStepDefinitions givenAnAlarmName(String alarmName) { this.alarmName = alarmName; return this; } CloudWatchStepDefinitions(); ExecutionStateCache getExecutionStateCache(); void setExecutionStateCache(ExecutionStateCache executionStateCache); @Given("^CloudWatch Alarm \"([^\"]*)\"$") CloudWatchStepDefinitions givenAnAlarmName(String alarmName); @Then("^assertCW alarm = \"([^\"]*)\"$") void assertCloudWatchAlarmState(String expectedState); @Then("^assertCW alarm \"([^\"]*)\" = \"([^\"]*)\"$") void assertCloudWatchAlarmState(String alarm, String expectedState); @Then("^assertCW alarm is on$") boolean isAlarmOn(); @Then("^assertCW alarm is off$") boolean isAlarmOff(); @Given("^check CloudWatch alarms state$") CloudWatchStepDefinitions checkAlarmState(); }
CloudWatchStepDefinitions { @Given("^CloudWatch Alarm \"([^\"]*)\"$") public CloudWatchStepDefinitions givenAnAlarmName(String alarmName) { this.alarmName = alarmName; return this; } CloudWatchStepDefinitions(); ExecutionStateCache getExecutionStateCache(); void setExecutionStateCache(ExecutionStateCache executionStateCache); @Given("^CloudWatch Alarm \"([^\"]*)\"$") CloudWatchStepDefinitions givenAnAlarmName(String alarmName); @Then("^assertCW alarm = \"([^\"]*)\"$") void assertCloudWatchAlarmState(String expectedState); @Then("^assertCW alarm \"([^\"]*)\" = \"([^\"]*)\"$") void assertCloudWatchAlarmState(String alarm, String expectedState); @Then("^assertCW alarm is on$") boolean isAlarmOn(); @Then("^assertCW alarm is off$") boolean isAlarmOff(); @Given("^check CloudWatch alarms state$") CloudWatchStepDefinitions checkAlarmState();  }