Changeset 12444 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2017-07-01T12:51:44+02:00 (7 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/actions
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/AddImageryLayerActionTest.java
r11635 r12444 12 12 import org.openstreetmap.josm.data.imagery.ImageryInfo; 13 13 import org.openstreetmap.josm.gui.layer.TMSLayer; 14 import org.openstreetmap.josm.gui.layer.WMSLayer;15 14 import org.openstreetmap.josm.testutils.JOSMTestRules; 16 15 … … 43 42 44 43 /** 45 * Unit test of {@link AddImageryLayerAction#actionPerformed} - Enabled cases .44 * Unit test of {@link AddImageryLayerAction#actionPerformed} - Enabled cases for TMS. 46 45 */ 47 46 @Test … … 51 50 List<TMSLayer> tmsLayers = Main.getLayerManager().getLayersOfType(TMSLayer.class); 52 51 assertEquals(1, tmsLayers.size()); 53 54 try { 55 new AddImageryLayerAction(new ImageryInfo("wms.openstreetmap.fr", "http://wms.openstreetmap.fr/wms?", 56 "wms_endpoint", null, null)).actionPerformed(null); 57 List<WMSLayer> wmsLayers = Main.getLayerManager().getLayersOfType(WMSLayer.class); 58 assertEquals(1, wmsLayers.size()); 59 60 Main.getLayerManager().removeLayer(wmsLayers.get(0)); 61 } finally { 62 Main.getLayerManager().removeLayer(tmsLayers.get(0)); 63 } 52 Main.getLayerManager().removeLayer(tmsLayers.get(0)); 64 53 } 65 54
Note:
See TracChangeset
for help on using the changeset viewer.