@Test public void testGivenElastiCacheCluster() throws Exception { elastiCacheStepDefinitions.givenElastiCacheCluster("cacheCluster"); Assert.assertEquals(executionStateCache.getElastiCacheClusterName(), "cacheCluster"); }
@Given("^ElastiCache \"([^\"]*)\"$") public ElastiCacheStepDefinitions givenElastiCacheCluster(String elasticCacheClusterName) { executionStateCache.setElastiCacheClusterName(elasticCacheClusterName); return this; }
ElastiCacheStepDefinitions { @Given("^ElastiCache \"([^\"]*)\"$") public ElastiCacheStepDefinitions givenElastiCacheCluster(String elasticCacheClusterName) { executionStateCache.setElastiCacheClusterName(elasticCacheClusterName); return this; } }
ElastiCacheStepDefinitions { @Given("^ElastiCache \"([^\"]*)\"$") public ElastiCacheStepDefinitions givenElastiCacheCluster(String elasticCacheClusterName) { executionStateCache.setElastiCacheClusterName(elasticCacheClusterName); return this; } ElastiCacheStepDefinitions(); }
ElastiCacheStepDefinitions { @Given("^ElastiCache \"([^\"]*)\"$") public ElastiCacheStepDefinitions givenElastiCacheCluster(String elasticCacheClusterName) { executionStateCache.setElastiCacheClusterName(elasticCacheClusterName); return this; } ElastiCacheStepDefinitions(); ExecutionStateCache getExecutionStateCache(); void setExecutionStateCache(ExecutionStateCache executionStateCache); @Given("^ElastiCache \"([^\"]*)\"$") ElastiCacheStepDefinitions givenElastiCacheCluster(String elasticCacheClusterName); @When("^reboot ElastiCache nodes (\\d+)$") ElastiCacheStepDefinitions rebootElastiCacheCluster(int numNodes); @Then("^assertElastiCache cluster status \"([^\"]*)\"$") void assertElastiCacheClusterStatus(String expectedStatus); @When("^add ElastiCache nodes (\\d+)$") ElastiCacheStepDefinitions addElastiCacheNodes(int numNodes); @When("^remove ElastiCache nodes (\\d+)$") ElastiCacheStepDefinitions removeElastiCacheNodes(int numNodes); @When("^detach ElastiCache subnet \"([^\"]*)\"$") ElastiCacheStepDefinitions detachElastiCacheSubnet(String subnetId); @Then("^attach ElastiCache subnet \"([^\"]*)\"$") ElastiCacheStepDefinitions attachElastiCacheSubnet(String subnetId); @When("^change ElastiCache security group from \"([^\"]*)\" to \"([^\"]*)\"$") ElastiCacheStepDefinitions changeElastiCacheSecurityGroup(String secGroupFrom, String secGroupTo); @Given("^ElastiCache node \"([^\"]*)\"$") ElastiCacheStepDefinitions givenElastCacheNode(String nodeName); @When("^reboot ElastiCache node") ElastiCacheStepDefinitions rebootElastiCacheNode(); @Then("^assertElastiCache node status \"([^\"]*)\"$") void assertElastiCacheNodeStatus(String expectedStatus); }
ElastiCacheStepDefinitions { @Given("^ElastiCache \"([^\"]*)\"$") public ElastiCacheStepDefinitions givenElastiCacheCluster(String elasticCacheClusterName) { executionStateCache.setElastiCacheClusterName(elasticCacheClusterName); return this; } ElastiCacheStepDefinitions(); ExecutionStateCache getExecutionStateCache(); void setExecutionStateCache(ExecutionStateCache executionStateCache); @Given("^ElastiCache \"([^\"]*)\"$") ElastiCacheStepDefinitions givenElastiCacheCluster(String elasticCacheClusterName); @When("^reboot ElastiCache nodes (\\d+)$") ElastiCacheStepDefinitions rebootElastiCacheCluster(int numNodes); @Then("^assertElastiCache cluster status \"([^\"]*)\"$") void assertElastiCacheClusterStatus(String expectedStatus); @When("^add ElastiCache nodes (\\d+)$") ElastiCacheStepDefinitions addElastiCacheNodes(int numNodes); @When("^remove ElastiCache nodes (\\d+)$") ElastiCacheStepDefinitions removeElastiCacheNodes(int numNodes); @When("^detach ElastiCache subnet \"([^\"]*)\"$") ElastiCacheStepDefinitions detachElastiCacheSubnet(String subnetId); @Then("^attach ElastiCache subnet \"([^\"]*)\"$") ElastiCacheStepDefinitions attachElastiCacheSubnet(String subnetId); @When("^change ElastiCache security group from \"([^\"]*)\" to \"([^\"]*)\"$") ElastiCacheStepDefinitions changeElastiCacheSecurityGroup(String secGroupFrom, String secGroupTo); @Given("^ElastiCache node \"([^\"]*)\"$") ElastiCacheStepDefinitions givenElastCacheNode(String nodeName); @When("^reboot ElastiCache node") ElastiCacheStepDefinitions rebootElastiCacheNode(); @Then("^assertElastiCache node status \"([^\"]*)\"$") void assertElastiCacheNodeStatus(String expectedStatus);  }