Changeset 9949 in josm for trunk/test
- Timestamp:
- 2016-03-07T21:45:35+01:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/gui/layer
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/ChooseTrackVisibilityActionTest.java
r9816 r9949 5 5 import org.junit.Test; 6 6 import org.openstreetmap.josm.JOSMFixture; 7 import org.openstreetmap.josm.TestUtils; 8 import org.openstreetmap.josm.data.gpx.GpxData; 9 import org.openstreetmap.josm.gui.layer.GpxLayer; 10 import org.openstreetmap.josm.io.GpxReaderTest; 7 import org.openstreetmap.josm.gui.layer.GpxLayerTest; 11 8 12 9 /** … … 29 26 @Test 30 27 public void testAction() throws Exception { 31 final GpxData gpx = GpxReaderTest.parseGpxData(TestUtils.getTestDataRoot() + "minimal.gpx"); 32 GpxLayer gpxLayer = new GpxLayer(gpx); 33 ChooseTrackVisibilityAction action = new ChooseTrackVisibilityAction(gpxLayer); 34 action.actionPerformed(null); 28 new ChooseTrackVisibilityAction(GpxLayerTest.getMinimalGpxLayer()).actionPerformed(null); 35 29 } 36 30 } -
trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/DownloadWmsAlongTrackActionTest.java
r9719 r9949 11 11 import org.openstreetmap.josm.JOSMFixture; 12 12 import org.openstreetmap.josm.Main; 13 import org.openstreetmap.josm.TestUtils;14 13 import org.openstreetmap.josm.data.gpx.GpxData; 15 14 import org.openstreetmap.josm.data.imagery.ImageryInfo; 15 import org.openstreetmap.josm.gui.layer.GpxLayerTest; 16 16 import org.openstreetmap.josm.gui.layer.TMSLayer; 17 17 import org.openstreetmap.josm.gui.layer.gpx.DownloadWmsAlongTrackAction.PrecacheWmsTask; 18 import org.openstreetmap.josm.io.GpxReaderTest;19 18 20 19 /** … … 52 51 assertTrue(TMSLayer.getCache().getMatching(".*").isEmpty()); 53 52 // Perform action 54 final GpxData gpx = GpxReaderTest.parseGpxData(TestUtils.getTestDataRoot() + "minimal.gpx"); 55 PrecacheWmsTask task = new DownloadWmsAlongTrackAction(gpx).createTask(); 53 PrecacheWmsTask task = new DownloadWmsAlongTrackAction(GpxLayerTest.getMinimalGpxData()).createTask(); 56 54 assertNotNull(task); 57 55 task.run();
Note:
See TracChangeset
for help on using the changeset viewer.