Changeset 14081 in josm for trunk/test/unit/org/openstreetmap/josm/gui
- Timestamp:
- 2018-08-04T01:59:46+02:00 (6 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/io/AsynchronousUploadPrimitivesTaskTest.java
r14052 r14081 11 11 import org.junit.Rule; 12 12 import org.junit.Test; 13 import org.openstreetmap.josm.TestUtils; 13 14 import org.openstreetmap.josm.data.APIDataSet; 14 15 import org.openstreetmap.josm.data.coor.LatLon; … … 49 50 @Before 50 51 public void bootStrap() { 52 TestUtils.assumeWorkingJMockit(); 51 53 new JOptionPaneSimpleMocker(ImmutableMap.of( 52 54 "A background upload is already in progress. Kindly wait for it to finish before uploading new changes", JOptionPane.OK_OPTION -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/advanced/ExportProfileActionTest.java
r14052 r14081 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.Main; 9 import org.openstreetmap.josm.TestUtils; 9 10 import org.openstreetmap.josm.testutils.JOSMTestRules; 10 11 import org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker; … … 30 31 @Test 31 32 public void testAction() { 33 TestUtils.assumeWorkingJMockit(); 32 34 new JOptionPaneSimpleMocker(ImmutableMap.of( 33 35 "All the preferences of this group are default, nothing to save", JOptionPane.OK_OPTION -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/advanced/PreferencesTableTest.java
r14052 r14081 13 13 import org.junit.Rule; 14 14 import org.junit.Test; 15 import org.openstreetmap.josm.TestUtils; 15 16 import org.openstreetmap.josm.gui.ExtendedDialog; 16 17 import org.openstreetmap.josm.gui.preferences.advanced.PreferencesTable.AllSettingsTableModel; … … 50 51 @Test 51 52 public void testPreferencesTable() { 53 TestUtils.assumeWorkingJMockit(); 52 54 new JOptionPaneSimpleMocker(ImmutableMap.of( 53 55 "Please select the row to edit.", JOptionPane.OK_OPTION, -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceHighLevelTest.java
r14062 r14081 39 39 40 40 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 41 import mockit.MockUp; 41 42 42 43 /** … … 393 394 @Test 394 395 public void testUpdateOnlySelectedPlugin() throws Exception { 396 TestUtils.assumeWorkingJMockit(); 395 397 final PluginServer pluginServer = new PluginServer( 396 398 new PluginServer.RemotePlugin(this.referenceDummyJarNew), … … 586 588 @Test 587 589 public void testUpdateWithNoAvailableUpdates() throws Exception { 590 TestUtils.assumeWorkingJMockit(); 588 591 final PluginServer pluginServer = new PluginServer( 589 592 new PluginServer.RemotePlugin(this.referenceDummyJarOld), … … 724 727 @Test 725 728 public void testInstallWithoutRestartRequired() throws Exception { 729 TestUtils.assumeWorkingJMockit(); 726 730 final boolean[] loadPluginsCalled = new boolean[] {false}; 727 new mockit.MockUp<PluginHandler>() {731 new MockUp<PluginHandler>() { 728 732 @mockit.Mock 729 733 private void loadPlugins(
Note:
See TracChangeset
for help on using the changeset viewer.