@Test public void testInvalidUri_NoPort() throws Exception { final DnsResolver resolver = mock(DnsResolver.class); when(resolver.resolve("example.com")).thenReturn(IPS_1); exception.expect(IllegalArgumentException.class); Endpoints.of(ImmutableList.of(new URI("http", "example.com", null, null)), resolver); }
public static Supplier<List<Endpoint>> of(final Supplier<List<URI>> uriSupplier) { return of(uriSupplier, DEFAULT_DNS_RESOLVER); }
Endpoints { public static Supplier<List<Endpoint>> of(final Supplier<List<URI>> uriSupplier) { return of(uriSupplier, DEFAULT_DNS_RESOLVER); } }
Endpoints { public static Supplier<List<Endpoint>> of(final Supplier<List<URI>> uriSupplier) { return of(uriSupplier, DEFAULT_DNS_RESOLVER); } private  Endpoints(); }
Endpoints { public static Supplier<List<Endpoint>> of(final Supplier<List<URI>> uriSupplier) { return of(uriSupplier, DEFAULT_DNS_RESOLVER); } private  Endpoints(); static Supplier<List<Endpoint>> of(final Supplier<List<URI>> uriSupplier); static List<Endpoint> of(final List<URI> uris); }
Endpoints { public static Supplier<List<Endpoint>> of(final Supplier<List<URI>> uriSupplier) { return of(uriSupplier, DEFAULT_DNS_RESOLVER); } private  Endpoints(); static Supplier<List<Endpoint>> of(final Supplier<List<URI>> uriSupplier); static List<Endpoint> of(final List<URI> uris);  }