@Test public void testAssertCloudWatchAlarmState() { PowerMockito.when(cloudWatchRaider.getAlarmState("alarmName")).thenReturn("OK"); cloudWatchStepDefinitions.assertCloudWatchAlarmState("alarmName", "OK"); }
@Then("^assertCW alarm = \"([^\"]*)\"$") public void assertCloudWatchAlarmState(String expectedState) { Assert.assertEquals(cloudWatchRaider.getAlarmState(alarmName), expectedState); }
CloudWatchStepDefinitions { @Then("^assertCW alarm = \"([^\"]*)\"$") public void assertCloudWatchAlarmState(String expectedState) { Assert.assertEquals(cloudWatchRaider.getAlarmState(alarmName), expectedState); } }
CloudWatchStepDefinitions { @Then("^assertCW alarm = \"([^\"]*)\"$") public void assertCloudWatchAlarmState(String expectedState) { Assert.assertEquals(cloudWatchRaider.getAlarmState(alarmName), expectedState); } CloudWatchStepDefinitions(); }
CloudWatchStepDefinitions { @Then("^assertCW alarm = \"([^\"]*)\"$") public void assertCloudWatchAlarmState(String expectedState) { Assert.assertEquals(cloudWatchRaider.getAlarmState(alarmName), expectedState); } 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 { @Then("^assertCW alarm = \"([^\"]*)\"$") public void assertCloudWatchAlarmState(String expectedState) { Assert.assertEquals(cloudWatchRaider.getAlarmState(alarmName), expectedState); } 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();  }