Last change
on this file since 18807 was 18807, checked in by taylor.smock, 12 months ago |
Allow importing geojson files that were saved to a session file
- GeoJSONImporter now extends OsmImporter instead of FileImporter and deprecates
the
parseDataSet(String) method.
|
-
Property svn:eol-style
set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.actions;
|
---|
3 |
|
---|
4 | import static org.junit.jupiter.api.Assertions.assertFalse;
|
---|
5 |
|
---|
6 | import org.junit.jupiter.api.Test;
|
---|
7 | import org.openstreetmap.josm.data.imagery.ImageryInfo;
|
---|
8 | import org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryType;
|
---|
9 | import org.openstreetmap.josm.gui.layer.TMSLayer;
|
---|
10 | import org.openstreetmap.josm.testutils.annotations.Main;
|
---|
11 | import org.openstreetmap.josm.testutils.annotations.Projection;
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Unit tests for class {@link SessionLoadAction}.
|
---|
15 | */
|
---|
16 | @Main
|
---|
17 | @Projection
|
---|
18 | class SessionLoadActionTest {
|
---|
19 | /**
|
---|
20 | * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/17702">Bug #17702</a>.
|
---|
21 | */
|
---|
22 | @Test
|
---|
23 | void testTicket17702() {
|
---|
24 | assertFalse(SessionLoadAction.Loader.addLayer(new TMSLayer(new ImageryInfo(
|
---|
25 | "Bing Карта (GLOBALCITY)",
|
---|
26 | "http://ecn.dynamic.t{switch:1,2,3}.tiles.virtualearth.net/comp/ch/{$q}?mkt=en-us&it=G,VE,BX,L,LA&shading=hill&og=2&n=z",
|
---|
27 | ImageryType.TMS.getTypeString(), null, null))));
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.