@Test public void testGetAwsServicesPrefix() { Prefix onlyAmazon = Prefix.parse("1.0.0.0/24"); Prefix onlyEc2 = Prefix.parse("2.0.0.0/24"); Prefix conflict = Prefix.parse("3.0.0.0/24"); Prefix onlyOther = Prefix.parse("4.0.0.0/24"); List<AwsPrefix> all = ImmutableList.of( new AwsPrefix(onlyAmazon, SERVICE_AMAZON), new AwsPrefix(onlyEc2, SERVICE_AMAZON), new AwsPrefix(conflict, SERVICE_AMAZON), new AwsPrefix(onlyOther, SERVICE_AMAZON), new AwsPrefix(onlyEc2, SERVICE_EC2), new AwsPrefix(conflict, SERVICE_EC2), new AwsPrefix(conflict, "conflictingService"), new AwsPrefix(onlyOther, "otherService")); assertThat( getAwsServicesPrefixes(all), equalTo(ImmutableSet.of(onlyAmazon, conflict, onlyOther))); }
public static Set<Prefix> getAwsServicesPrefixes() { return getAwsServicesPrefixes(INSTANCE._awsPrefixes); }
AwsPrefixes { public static Set<Prefix> getAwsServicesPrefixes() { return getAwsServicesPrefixes(INSTANCE._awsPrefixes); } }
AwsPrefixes { public static Set<Prefix> getAwsServicesPrefixes() { return getAwsServicesPrefixes(INSTANCE._awsPrefixes); } AwsPrefixes(List<AwsPrefix> prefixes); }
AwsPrefixes { public static Set<Prefix> getAwsServicesPrefixes() { return getAwsServicesPrefixes(INSTANCE._awsPrefixes); } AwsPrefixes(List<AwsPrefix> prefixes); static List<Prefix> getPrefixes(); static List<Prefix> getPrefixes(String serviceName); static Set<Prefix> getAwsServicesPrefixes(); static List<Prefix> getAwsS3Prefixes(); }
AwsPrefixes { public static Set<Prefix> getAwsServicesPrefixes() { return getAwsServicesPrefixes(INSTANCE._awsPrefixes); } AwsPrefixes(List<AwsPrefix> prefixes); static List<Prefix> getPrefixes(); static List<Prefix> getPrefixes(String serviceName); static Set<Prefix> getAwsServicesPrefixes(); static List<Prefix> getAwsS3Prefixes();  }