@Test public void testUpdateHealthCheckRegions() { UpdateHealthCheckResult updateHealthCheckResult = PowerMockito.mock(UpdateHealthCheckResult.class); Mockito.when(mockAmazonRoute53.updateHealthCheck(Mockito.any())).thenReturn(updateHealthCheckResult); route53RaiderUnderTest.updateHealthCheckRegions(SW2_R53_HEALTH_CHECK_ID, Arrays.asList("us-west-2","us-east-1")); }
@Override public void updateHealthCheckRegions(String healthCheckId, List<String> regions) { UpdateHealthCheckRequest updateHealthCheckRequest = new UpdateHealthCheckRequest() .withHealthCheckId(healthCheckId) .withRegions(regions); route53Delegator.getAmazonRoute53().updateHealthCheck(updateHealthCheckRequest); }
Route53RaiderImpl implements Route53Raider { @Override public void updateHealthCheckRegions(String healthCheckId, List<String> regions) { UpdateHealthCheckRequest updateHealthCheckRequest = new UpdateHealthCheckRequest() .withHealthCheckId(healthCheckId) .withRegions(regions); route53Delegator.getAmazonRoute53().updateHealthCheck(updateHealthCheckRequest); } }
Route53RaiderImpl implements Route53Raider { @Override public void updateHealthCheckRegions(String healthCheckId, List<String> regions) { UpdateHealthCheckRequest updateHealthCheckRequest = new UpdateHealthCheckRequest() .withHealthCheckId(healthCheckId) .withRegions(regions); route53Delegator.getAmazonRoute53().updateHealthCheck(updateHealthCheckRequest); } Route53RaiderImpl(); }
Route53RaiderImpl implements Route53Raider { @Override public void updateHealthCheckRegions(String healthCheckId, List<String> regions) { UpdateHealthCheckRequest updateHealthCheckRequest = new UpdateHealthCheckRequest() .withHealthCheckId(healthCheckId) .withRegions(regions); route53Delegator.getAmazonRoute53().updateHealthCheck(updateHealthCheckRequest); } Route53RaiderImpl(); @Override List<HealthCheck> listHealthCheckers(); @Override List<HealthCheckObservation> getHealthCheckerStatus(String healthCheckerId); @Override HealthCheckStatus getSimpleHealthCheckerStatus(String healthCheckerId); @Override void updateTrafficPolicy(String trafficPolicyName, int version); @Override int getTrafficPolicyVersion(String trafficPolicyName); String getR53PolicyId(String policyId); @Override void updateHealthCheckRegions(String healthCheckId, List<String> regions); @Override List<String> getHealthCheckRegions(String healthCheckId); @Override void updateHealthCheckToDefaultRegions(String healthCheckId); }
Route53RaiderImpl implements Route53Raider { @Override public void updateHealthCheckRegions(String healthCheckId, List<String> regions) { UpdateHealthCheckRequest updateHealthCheckRequest = new UpdateHealthCheckRequest() .withHealthCheckId(healthCheckId) .withRegions(regions); route53Delegator.getAmazonRoute53().updateHealthCheck(updateHealthCheckRequest); } Route53RaiderImpl(); @Override List<HealthCheck> listHealthCheckers(); @Override List<HealthCheckObservation> getHealthCheckerStatus(String healthCheckerId); @Override HealthCheckStatus getSimpleHealthCheckerStatus(String healthCheckerId); @Override void updateTrafficPolicy(String trafficPolicyName, int version); @Override int getTrafficPolicyVersion(String trafficPolicyName); String getR53PolicyId(String policyId); @Override void updateHealthCheckRegions(String healthCheckId, List<String> regions); @Override List<String> getHealthCheckRegions(String healthCheckId); @Override void updateHealthCheckToDefaultRegions(String healthCheckId);  }