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 | |
---|
1 | package org.openstreetmap.josm.gui.download;
|
---|
2 |
|
---|
3 | import static org.junit.Assert.*;
|
---|
4 |
|
---|
5 | import org.junit.Test;
|
---|
6 | import org.openstreetmap.josm.data.Bounds;
|
---|
7 |
|
---|
8 | public 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.