@Test public void testGetURL() { Assert.assertEquals( "http: this.tile.getUrl().toString()); }
public URL getUrl() { String url = this.service.getBaseUrl().replace("${code}", getTileIdentifier().getCode()); try { return new URL(url); } catch (Exception e) { final String mesg = "Cannot create URL from " + url; LOGGER.log(Level.SEVERE, mesg, e); throw new RuntimeException(mesg, e); } }
BingTile extends Tile { public URL getUrl() { String url = this.service.getBaseUrl().replace("${code}", getTileIdentifier().getCode()); try { return new URL(url); } catch (Exception e) { final String mesg = "Cannot create URL from " + url; LOGGER.log(Level.SEVERE, mesg, e); throw new RuntimeException(mesg, e); } } }
BingTile extends Tile { public URL getUrl() { String url = this.service.getBaseUrl().replace("${code}", getTileIdentifier().getCode()); try { return new URL(url); } catch (Exception e) { final String mesg = "Cannot create URL from " + url; LOGGER.log(Level.SEVERE, mesg, e); throw new RuntimeException(mesg, e); } } BingTile(int x, int y, ZoomLevel zoomLevel, TileService service);  BingTile(TileIdentifier tileName, TileService service); }
BingTile extends Tile { public URL getUrl() { String url = this.service.getBaseUrl().replace("${code}", getTileIdentifier().getCode()); try { return new URL(url); } catch (Exception e) { final String mesg = "Cannot create URL from " + url; LOGGER.log(Level.SEVERE, mesg, e); throw new RuntimeException(mesg, e); } } BingTile(int x, int y, ZoomLevel zoomLevel, TileService service);  BingTile(TileIdentifier tileName, TileService service); URL getUrl(); }
BingTile extends Tile { public URL getUrl() { String url = this.service.getBaseUrl().replace("${code}", getTileIdentifier().getCode()); try { return new URL(url); } catch (Exception e) { final String mesg = "Cannot create URL from " + url; LOGGER.log(Level.SEVERE, mesg, e); throw new RuntimeException(mesg, e); } } BingTile(int x, int y, ZoomLevel zoomLevel, TileService service);  BingTile(TileIdentifier tileName, TileService service); URL getUrl(); static final int DEFAULT_TILE_SIZE; }