Changeset 12563 in josm
- Timestamp:
- 2017-08-03T21:43:11+02:00 (7 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java
r12559 r12563 151 151 152 152 initContentPane(); 153 initMainPanel( );153 initMainPanel(false); 154 154 initToolbar(); 155 155 if (Main.main == null) { … … 157 157 } else { 158 158 if (Main.main.panel == null) { 159 initMainPanel( );159 initMainPanel(false); 160 160 Main.main.panel = Main.mainPanel; 161 161 } … … 177 177 /** 178 178 * Make sure {@code Main.mainPanel} is initialized. 179 * @param reAddListeners {@code true} to re-add listeners 179 180 */ 180 public static void initMainPanel( ) {181 public static void initMainPanel(boolean reAddListeners) { 181 182 if (Main.mainPanel == null) { 182 183 Main.mainPanel = new MainPanel(Main.getLayerManager()); 184 } 185 if (reAddListeners) { 186 Main.mainPanel.reAddListeners(); 183 187 } 184 188 } -
trunk/test/unit/org/openstreetmap/josm/actions/CreateCircleActionTest.java
r12562 r12563 38 38 @Rule 39 39 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 40 public JOSMTestRules test = new JOSMTestRules().platform().projection().main ();40 public JOSMTestRules test = new JOSMTestRules().platform().projection().mainMenu(); 41 41 42 42 /** -
trunk/test/unit/org/openstreetmap/josm/actions/MergeLayerActionTest.java
r12562 r12563 10 10 import org.openstreetmap.josm.Main; 11 11 import org.openstreetmap.josm.data.osm.DataSet; 12 import org.openstreetmap.josm.gui.dialogs.LayerListDialog;13 12 import org.openstreetmap.josm.gui.layer.LayerManagerTest.TestLayer; 14 13 import org.openstreetmap.josm.gui.layer.OsmDataLayer; … … 36 35 @Before 37 36 public void setUp() { 38 try {39 LayerListDialog.getInstance();40 } catch (IllegalStateException e) {41 LayerListDialog.createInstance(Main.getLayerManager());42 Main.trace(e);43 }44 37 if (action == null) { 45 38 action = new MergeLayerAction(); -
trunk/test/unit/org/openstreetmap/josm/actions/PurgeActionTest.java
r12562 r12563 32 32 @Rule 33 33 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 34 public JOSMTestRules test = new JOSMTestRules().platform().main ();34 public JOSMTestRules test = new JOSMTestRules().platform().mainMenu(); 35 35 36 36 /** -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/AddNoteActionTest.java
r11713 r12563 28 28 @Rule 29 29 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 30 public JOSMTestRules test = new JOSMTestRules(). commands();30 public JOSMTestRules test = new JOSMTestRules().platform().mainMenu().projection(); 31 31 32 32 /** -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/DeleteActionTest.java
r11978 r12563 26 26 @Rule 27 27 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 28 public JOSMTestRules test = new JOSMTestRules().platform(). commands();28 public JOSMTestRules test = new JOSMTestRules().platform().mainMenu().projection(); 29 29 30 30 /** -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/DrawActionTest.java
r12521 r12563 39 39 @Rule 40 40 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 41 public JOSMTestRules test = new JOSMTestRules(). commands();41 public JOSMTestRules test = new JOSMTestRules().platform().mainMenu().projection(); 42 42 43 43 /** -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/ExtrudeActionTest.java
r11978 r12563 26 26 @Rule 27 27 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 28 public JOSMTestRules test = new JOSMTestRules().platform(). commands();28 public JOSMTestRules test = new JOSMTestRules().platform().platform().mainMenu().projection(); 29 29 30 30 /** -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyActionTest.java
r11978 r12563 26 26 @Rule 27 27 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 28 public JOSMTestRules test = new JOSMTestRules().platform(). commands();28 public JOSMTestRules test = new JOSMTestRules().platform().platform().mainMenu().projection(); 29 29 30 30 /** -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/ParallelWayActionTest.java
r11978 r12563 27 27 @Rule 28 28 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 29 public JOSMTestRules test = new JOSMTestRules().platform(). commands();29 public JOSMTestRules test = new JOSMTestRules().platform().platform().mainMenu().projection(); 30 30 31 31 /** -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/PlayHeadDragModeTest.java
r10945 r12563 25 25 @Rule 26 26 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 27 public JOSMTestRules test = new JOSMTestRules().platform(). commands();27 public JOSMTestRules test = new JOSMTestRules().platform().platform().mainMenu().projection(); 28 28 29 29 /** -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/SelectActionTest.java
r12521 r12563 59 59 @Rule 60 60 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 61 public JOSMTestRules test = new JOSMTestRules().platform().projection(). commands();61 public JOSMTestRules test = new JOSMTestRules().platform().projection().mainMenu(); 62 62 63 63 /** -
trunk/test/unit/org/openstreetmap/josm/actions/upload/FixDataHookTest.java
r10945 r12563 34 34 @Rule 35 35 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 36 public JOSMTestRules test = new JOSMTestRules(). commands();36 public JOSMTestRules test = new JOSMTestRules().main(); 37 37 38 38 /** -
trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
r12562 r12563 341 341 new MainApplication(); 342 342 JOSMFixture.initContentPane(); 343 JOSMFixture.initMainPanel( );343 JOSMFixture.initMainPanel(true); 344 344 JOSMFixture.initToolbar(); 345 345 }
Note:
See TracChangeset
for help on using the changeset viewer.