@Test public void testCollectOnePrivateSubnetPerAzWhenEmptyThenReturnsEmtpyMap() { List<CloudSubnet> cloudSubnets = new SubnetBuilder() .build(); List<CloudSubnet> privateSubnetsPerAz = subnetSelectorService.collectPrivateSubnets(cloudSubnets); assertTrue(privateSubnetsPerAz.isEmpty()); }
List<CloudSubnet> collectPrivateSubnets(Collection<CloudSubnet> subnetMetas) { List<CloudSubnet> result = new ArrayList<>(); for (CloudSubnet subnetMeta : subnetMetas) { if (subnetMeta.isPrivateSubnet()) { result.add(subnetMeta); } } LOGGER.debug("Private subnets for selections: {}", result); return result; }
SubnetSelectorService { List<CloudSubnet> collectPrivateSubnets(Collection<CloudSubnet> subnetMetas) { List<CloudSubnet> result = new ArrayList<>(); for (CloudSubnet subnetMeta : subnetMetas) { if (subnetMeta.isPrivateSubnet()) { result.add(subnetMeta); } } LOGGER.debug("Private subnets for selections: {}", result); return result; } }
SubnetSelectorService { List<CloudSubnet> collectPrivateSubnets(Collection<CloudSubnet> subnetMetas) { List<CloudSubnet> result = new ArrayList<>(); for (CloudSubnet subnetMeta : subnetMetas) { if (subnetMeta.isPrivateSubnet()) { result.add(subnetMeta); } } LOGGER.debug("Private subnets for selections: {}", result); return result; }  }
SubnetSelectorService { List<CloudSubnet> collectPrivateSubnets(Collection<CloudSubnet> subnetMetas) { List<CloudSubnet> result = new ArrayList<>(); for (CloudSubnet subnetMeta : subnetMetas) { if (subnetMeta.isPrivateSubnet()) { result.add(subnetMeta); } } LOGGER.debug("Private subnets for selections: {}", result); return result; }   }
SubnetSelectorService { List<CloudSubnet> collectPrivateSubnets(Collection<CloudSubnet> subnetMetas) { List<CloudSubnet> result = new ArrayList<>(); for (CloudSubnet subnetMeta : subnetMetas) { if (subnetMeta.isPrivateSubnet()) { result.add(subnetMeta); } } LOGGER.debug("Private subnets for selections: {}", result); return result; }    }