source: josm/trunk/test/unit/org/openstreetmap/josm/actions/SessionLoadActionTest.java@ 18807

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.
2package org.openstreetmap.josm.actions;
3
4import static org.junit.jupiter.api.Assertions.assertFalse;
5
6import org.junit.jupiter.api.Test;
7import org.openstreetmap.josm.data.imagery.ImageryInfo;
8import org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryType;
9import org.openstreetmap.josm.gui.layer.TMSLayer;
10import org.openstreetmap.josm.testutils.annotations.Main;
11import org.openstreetmap.josm.testutils.annotations.Projection;
12
13/**
14 * Unit tests for class {@link SessionLoadAction}.
15 */
16@Main
17@Projection
18class 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.