Changeset 12643 in josm for trunk/test
- Timestamp:
- 2017-08-25T10:18:53+02:00 (7 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java
r12642 r12643 191 191 MainApplicationTest.initToolbar(); 192 192 } 193 194 /** 195 * Make sure {@code MainApplication.menu} is initialized. 196 */ 197 public static void initMainMenu() { 198 MainApplicationTest.initMainMenu(); 199 } 193 200 } -
trunk/test/unit/org/openstreetmap/josm/actions/AlignInLineActionTest.java
r12636 r12643 8 8 import org.junit.Rule; 9 9 import org.junit.Test; 10 import org.openstreetmap.josm.Main;11 10 import org.openstreetmap.josm.actions.AlignInLineAction.InvalidSelection; 12 11 import org.openstreetmap.josm.actions.AlignInLineAction.Line; … … 43 42 public void setUp() { 44 43 // Enable "Align in line" feature. 45 action = Main .main.menu.alignInLine;44 action = MainApplication.getMenu().alignInLine; 46 45 action.setEnabled(true); 47 46 } -
trunk/test/unit/org/openstreetmap/josm/actions/JoinAreasActionTest.java
r12636 r12643 17 17 import org.junit.Rule; 18 18 import org.junit.Test; 19 import org.openstreetmap.josm.Main;20 19 import org.openstreetmap.josm.TestUtils; 21 20 import org.openstreetmap.josm.actions.search.SearchAction; … … 88 87 assertEquals(2, found.size()); 89 88 90 Main .main.menu.joinAreas.join(Utils.filteredCollection(found, Way.class));89 MainApplication.getMenu().joinAreas.join(Utils.filteredCollection(found, Way.class)); 91 90 92 91 Collection<OsmPrimitive> found2 = SearchAction.searchAndReturn("type:way ref="+ref, SearchAction.SearchMode.replace); -
trunk/test/unit/org/openstreetmap/josm/actions/SimplifyWayActionTest.java
r12636 r12643 13 13 import org.junit.Rule; 14 14 import org.junit.Test; 15 import org.openstreetmap.josm.Main;16 15 import org.openstreetmap.josm.command.DeleteCommand; 17 16 import org.openstreetmap.josm.command.SequenceCommand; … … 48 47 public void setUp() { 49 48 if (action == null) { 50 action = Main .main.menu.simplifyWay;49 action = MainApplication.getMenu().simplifyWay; 51 50 action.setEnabled(true); 52 51 } -
trunk/test/unit/org/openstreetmap/josm/actions/SplitWayActionTest.java
r12641 r12643 14 14 import org.junit.Rule; 15 15 import org.junit.Test; 16 import org.openstreetmap.josm.Main;17 16 import org.openstreetmap.josm.actions.SplitWayAction.Strategy; 18 17 import org.openstreetmap.josm.data.coor.EastNorth; … … 51 50 public void setUp() { 52 51 if (action == null) { 53 action = Main .main.menu.splitWay;52 action = MainApplication.getMenu().splitWay; 54 53 action.setEnabled(true); 55 54 } -
trunk/test/unit/org/openstreetmap/josm/actions/UnGlueActionTest.java
r12636 r12643 8 8 import org.junit.Rule; 9 9 import org.junit.Test; 10 import org.openstreetmap.josm.Main;11 10 import org.openstreetmap.josm.data.coor.LatLon; 12 11 import org.openstreetmap.josm.data.osm.DataSet; … … 40 39 public void setUp() { 41 40 if (action == null) { 42 action = Main .main.menu.unglueNodes;41 action = MainApplication.getMenu().unglueNodes; 43 42 action.setEnabled(true); 44 43 } -
trunk/test/unit/org/openstreetmap/josm/gui/MainApplicationTest.java
r12642 r12643 91 91 Main.main.panel = MainApplication.mainPanel; 92 92 } 93 } 94 95 /** 96 * Make sure {@code MainApplication.menu} is initialized. 97 */ 98 @SuppressWarnings("deprecation") 99 public static void initMainMenu() { 100 MainApplication.menu = new MainMenu(); 101 Main.main.menu = MainApplication.menu; 93 102 } 94 103 -
trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
r12636 r12643 18 18 import org.openstreetmap.josm.data.projection.Projections; 19 19 import org.openstreetmap.josm.gui.MainApplication; 20 import org.openstreetmap.josm.gui.MainMenu;21 20 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles; 22 21 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresets; … … 351 350 JOSMFixture.initMainPanel(true); 352 351 JOSMFixture.initToolbar(); 353 Main.main.menu = newMainMenu();352 JOSMFixture.initMainMenu(); 354 353 } 355 354 }
Note:
See TracChangeset
for help on using the changeset viewer.