Last change
on this file since 18807 was 18807, checked in by taylor.smock, 13 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
|
Rev | Line | |
---|
[15070] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.actions;
|
---|
| 3 |
|
---|
[17275] | 4 | import static org.junit.jupiter.api.Assertions.assertFalse;
|
---|
[15070] | 5 |
|
---|
[17275] | 6 | import org.junit.jupiter.api.Test;
|
---|
[15070] | 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;
|
---|
[18807] | 10 | import org.openstreetmap.josm.testutils.annotations.Main;
|
---|
| 11 | import org.openstreetmap.josm.testutils.annotations.Projection;
|
---|
[15070] | 12 |
|
---|
| 13 | /**
|
---|
| 14 | * Unit tests for class {@link SessionLoadAction}.
|
---|
| 15 | */
|
---|
[18807] | 16 | @Main
|
---|
| 17 | @Projection
|
---|
[17275] | 18 | class SessionLoadActionTest {
|
---|
[15070] | 19 | /**
|
---|
| 20 | * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/17702">Bug #17702</a>.
|
---|
| 21 | */
|
---|
| 22 | @Test
|
---|
[17275] | 23 | void testTicket17702() {
|
---|
[15070] | 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.