Changeset 10279 in josm for trunk/test
- Timestamp:
- 2016-05-25T08:52:14+02:00 (9 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/MainLayerManagerTest.java
r10278 r10279 13 13 import org.openstreetmap.josm.JOSMFixture; 14 14 import org.openstreetmap.josm.data.osm.DataSet; 15 import org.openstreetmap.josm.gui.layer. LayerManagerWithActive.ActiveLayerChangeEvent;16 import org.openstreetmap.josm.gui.layer. LayerManagerWithActive.ActiveLayerChangeListener;15 import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeEvent; 16 import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeListener; 17 17 import org.openstreetmap.josm.gui.util.GuiHelper; 18 18 import org.openstreetmap.josm.tools.Predicates; 19 19 20 20 /** 21 * Tests {@link LayerManagerWithActive}21 * Tests {@link MainLayerManager}. 22 22 * @author Michael Zangl 23 *24 23 */ 25 public class LayerManagerWithActiveTest extends LayerManagerTest {26 27 private LayerManagerWithActivelayerManagerWithActive;24 public class MainLayerManagerTest extends LayerManagerTest { 25 26 private MainLayerManager layerManagerWithActive; 28 27 29 28 private class CapturingActiveLayerChangeListener implements ActiveLayerChangeListener { … … 64 63 @Before 65 64 public void setUp() { 66 layerManager = layerManagerWithActive = new LayerManagerWithActive();65 layerManager = layerManagerWithActive = new MainLayerManager(); 67 66 } 68 67 … … 137 136 138 137 /** 139 * Test if {@link LayerManagerWithActive#addActiveLayerChangeListener(ActiveLayerChangeListener)} prevents listener from beeing added twice.138 * Test if {@link MainLayerManager#addActiveLayerChangeListener(ActiveLayerChangeListener)} prevents listener from beeing added twice. 140 139 */ 141 140 @Test(expected = IllegalArgumentException.class) … … 147 146 148 147 /** 149 * Test if {@link LayerManagerWithActive#removeActiveLayerChangeListener(ActiveLayerChangeListener)} works.148 * Test if {@link MainLayerManager#removeActiveLayerChangeListener(ActiveLayerChangeListener)} works. 150 149 */ 151 150 @Test … … 165 164 166 165 /** 167 * Test if {@link LayerManagerWithActive#removeActiveLayerChangeListener(ActiveLayerChangeListener)} checks if listener is in list.166 * Test if {@link MainLayerManager#removeActiveLayerChangeListener(ActiveLayerChangeListener)} checks if listener is in list. 168 167 */ 169 168 @Test(expected = IllegalArgumentException.class) … … 173 172 174 173 /** 175 * Tests {@link LayerManagerWithActive#setActiveLayer(Layer)} and {@link LayerManagerWithActive#getActiveLayer()}.174 * Tests {@link MainLayerManager#setActiveLayer(Layer)} and {@link MainLayerManager#getActiveLayer()}. 176 175 * <p> 177 176 * Edit and active layer getters are also tested in {@link #testAddLayerSetsActiveLayer()} … … 192 191 193 192 /** 194 * Tests {@link LayerManagerWithActive#getEditDataSet()}193 * Tests {@link MainLayerManager#getEditDataSet()} 195 194 */ 196 195 @Test … … 214 213 215 214 /** 216 * Tests {@link LayerManagerWithActive#getVisibleLayersInZOrder()}215 * Tests {@link MainLayerManager#getVisibleLayersInZOrder()} 217 216 */ 218 217 @Test
Note:
See TracChangeset
for help on using the changeset viewer.