7677787980818283
} @Test public void testGetPortWhenUnprovided() throws Exception { GwtRpcClientSideProxy proxy = new GwtRpcClientSideProxy(new URL("http://www.google.com")); Assert.assertEquals(new Integer(80), proxy.getPort()); }
838485868788899091
} @Test public void testGetPortProvided() throws MalformedURLException { Integer PORT = 8080; GwtRpcClientSideProxy proxy = new GwtRpcClientSideProxy(new URL("http://www.google.com:" + PORT)); Assert.assertEquals(PORT, proxy.getPort()); }