source: josm/test/org/openstreetmap/josm/gui/download/BoundingBoxSelectionTest.java@ 275

Last change on this file since 275 was 275, checked in by imi, 17 years ago
  • fixed downloader for OSM-url's to use the new url from osm server.
File size: 540 bytes
Line 
1package org.openstreetmap.josm.gui.download;
2
3import static org.junit.Assert.*;
4
5import org.junit.Test;
6import org.openstreetmap.josm.data.Bounds;
7
8public class BoundingBoxSelectionTest {
9
10 private Bounds bounds;
11
12 @Test public void osmurl2boundsDoesWorkWithAnyDomain() throws Exception {
13 bounds = BoundingBoxSelection.osmurl2bounds("http://foobar?mlat=123&mlon=234&zoom=1");
14 assertNotNull(bounds);
15
16 bounds = BoundingBoxSelection.osmurl2bounds("http://www.openstreetmap.org?mlat=123&mlon=234&zoom=1");
17 assertNotNull(bounds);
18 }
19}
Note: See TracBrowser for help on using the repository browser.