@Test public void testInstanceTargetStaticRoutes_noInstanceTargets() { List<Configuration> cfgNodes = _loadBalancer.toConfigurationNodes( new ConvertedConfiguration(), Region.builder("r1").build(), new Warnings()); cfgNodes.forEach(cfgNode -> assertThat(cfgNode.getDefaultVrf().getStaticRoutes(), empty())); }
List<Configuration> toConfigurationNodes( ConvertedConfiguration awsConfiguration, Region region, Warnings warnings) { if (_type == Type.APPLICATION) { warnings.redFlag("Application load balancer is not currently supported"); return ImmutableList.of(); } List<Configuration> configurations = new LinkedList<>(); _availabilityZones.forEach( zone -> configurations.add(toConfigurationNode(zone, awsConfiguration, region, warnings))); return configurations; }
LoadBalancer implements AwsVpcEntity, Serializable { List<Configuration> toConfigurationNodes( ConvertedConfiguration awsConfiguration, Region region, Warnings warnings) { if (_type == Type.APPLICATION) { warnings.redFlag("Application load balancer is not currently supported"); return ImmutableList.of(); } List<Configuration> configurations = new LinkedList<>(); _availabilityZones.forEach( zone -> configurations.add(toConfigurationNode(zone, awsConfiguration, region, warnings))); return configurations; } }
LoadBalancer implements AwsVpcEntity, Serializable { List<Configuration> toConfigurationNodes( ConvertedConfiguration awsConfiguration, Region region, Warnings warnings) { if (_type == Type.APPLICATION) { warnings.redFlag("Application load balancer is not currently supported"); return ImmutableList.of(); } List<Configuration> configurations = new LinkedList<>(); _availabilityZones.forEach( zone -> configurations.add(toConfigurationNode(zone, awsConfiguration, region, warnings))); return configurations; } LoadBalancer(
      String arn,
      List<AvailabilityZone> availabilityZones,
      String dnsName,
      String name,
      Scheme scheme,
      Type type,
      String vpcId); }
LoadBalancer implements AwsVpcEntity, Serializable { List<Configuration> toConfigurationNodes( ConvertedConfiguration awsConfiguration, Region region, Warnings warnings) { if (_type == Type.APPLICATION) { warnings.redFlag("Application load balancer is not currently supported"); return ImmutableList.of(); } List<Configuration> configurations = new LinkedList<>(); _availabilityZones.forEach( zone -> configurations.add(toConfigurationNode(zone, awsConfiguration, region, warnings))); return configurations; } LoadBalancer(
      String arn,
      List<AvailabilityZone> availabilityZones,
      String dnsName,
      String name,
      Scheme scheme,
      Type type,
      String vpcId); @Override String getId(); @Nonnull List<AvailabilityZone> getAvailabilityZones(); @Nonnull String getDnsName(); @Nonnull String getName(); @Nonnull Scheme getScheme(); @Nonnull Type getType(); @Nonnull String getVpcId(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
LoadBalancer implements AwsVpcEntity, Serializable { List<Configuration> toConfigurationNodes( ConvertedConfiguration awsConfiguration, Region region, Warnings warnings) { if (_type == Type.APPLICATION) { warnings.redFlag("Application load balancer is not currently supported"); return ImmutableList.of(); } List<Configuration> configurations = new LinkedList<>(); _availabilityZones.forEach( zone -> configurations.add(toConfigurationNode(zone, awsConfiguration, region, warnings))); return configurations; } LoadBalancer(
      String arn,
      List<AvailabilityZone> availabilityZones,
      String dnsName,
      String name,
      Scheme scheme,
      Type type,
      String vpcId); @Override String getId(); @Nonnull List<AvailabilityZone> getAvailabilityZones(); @Nonnull String getDnsName(); @Nonnull String getName(); @Nonnull Scheme getScheme(); @Nonnull Type getType(); @Nonnull String getVpcId(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }