@Test public void testHumanName() { assertThat(humanName(ImmutableMap.of(TAG_NAME, "tag"), "sname"), equalTo("tag")); assertThat(humanName(ImmutableMap.of(), "sname"), equalTo("sname")); }
@Nonnull @VisibleForTesting static String humanName(Map<String, String> tags, String serviceName) { return tags.getOrDefault(TAG_NAME, serviceName); }
VpcEndpointGateway extends VpcEndpoint { @Nonnull @VisibleForTesting static String humanName(Map<String, String> tags, String serviceName) { return tags.getOrDefault(TAG_NAME, serviceName); } }
VpcEndpointGateway extends VpcEndpoint { @Nonnull @VisibleForTesting static String humanName(Map<String, String> tags, String serviceName) { return tags.getOrDefault(TAG_NAME, serviceName); } VpcEndpointGateway(String id, String serviceName, String vpcId, Map<String, String> tags); }
VpcEndpointGateway extends VpcEndpoint { @Nonnull @VisibleForTesting static String humanName(Map<String, String> tags, String serviceName) { return tags.getOrDefault(TAG_NAME, serviceName); } VpcEndpointGateway(String id, String serviceName, String vpcId, Map<String, String> tags); @Override boolean equals(@Nullable Object o); @Override int hashCode(); }
VpcEndpointGateway extends VpcEndpoint { @Nonnull @VisibleForTesting static String humanName(Map<String, String> tags, String serviceName) { return tags.getOrDefault(TAG_NAME, serviceName); } VpcEndpointGateway(String id, String serviceName, String vpcId, Map<String, String> tags); @Override boolean equals(@Nullable Object o); @Override int hashCode();  }