Changeset 10950 in josm for trunk/test/unit
- Timestamp:
- 2016-09-04T01:06:20+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/OsmDataLayerTest.java
r10883 r10950 4 4 import static org.junit.Assert.assertEquals; 5 5 import static org.junit.Assert.assertFalse; 6 import static org.junit.Assert.assertNotEquals; 6 7 import static org.junit.Assert.assertNotNull; 7 8 import static org.junit.Assert.assertTrue; … … 191 192 public void testGetMenuEntries() { 192 193 OsmDataLayer layer = new OsmDataLayer(new DataSet(), "", null); 194 boolean mode = ExpertToggleAction.isExpert(); 193 195 ExpertToggleAction.getInstance().actionPerformed(null); 194 assertEquals(13, layer.getMenuEntries().length); 196 assertNotEquals(mode, ExpertToggleAction.isExpert()); 197 assertEquals(ExpertToggleAction.isExpert() ? 16 : 13, layer.getMenuEntries().length); 195 198 ExpertToggleAction.getInstance().actionPerformed(null); 196 assertEquals(16, layer.getMenuEntries().length); 199 assertEquals(mode, ExpertToggleAction.isExpert()); 200 assertEquals(ExpertToggleAction.isExpert() ? 16 : 13, layer.getMenuEntries().length); 197 201 } 198 202
Note:
See TracChangeset
for help on using the changeset viewer.