@Test public void getApplicationDomain_whenGivenAURL_thenConvertAppDomainCorrectly() throws Exception { URL url = new URL(PROTOCOL, HOST, PORT, ""); String result = simpleUrlToAppDomainConverter.apply(url.toURI()); Assert.assertEquals(result, HOST + ":" + PORT); }
@Override public String apply(URI uri) { return Assert.requireNonNull(uri, "uri").getHost() + ":" + uri.getPort(); }
SimpleUrlToAppDomainConverter implements Function<URI, String> { @Override public String apply(URI uri) { return Assert.requireNonNull(uri, "uri").getHost() + ":" + uri.getPort(); } }
SimpleUrlToAppDomainConverter implements Function<URI, String> { @Override public String apply(URI uri) { return Assert.requireNonNull(uri, "uri").getHost() + ":" + uri.getPort(); }  }
SimpleUrlToAppDomainConverter implements Function<URI, String> { @Override public String apply(URI uri) { return Assert.requireNonNull(uri, "uri").getHost() + ":" + uri.getPort(); }  @Override String apply(URI uri); }
SimpleUrlToAppDomainConverter implements Function<URI, String> { @Override public String apply(URI uri) { return Assert.requireNonNull(uri, "uri").getHost() + ":" + uri.getPort(); }  @Override String apply(URI uri);  }