Ignore:
Timestamp:
2018-08-04T01:59:46+02:00 (6 years ago)
Author:
Don-vip
Message:

see #16010 - Ignore tests using JMockit on Java 11+, workaround to https://github.com/jmockit/jmockit1/issues/534

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  
    1111import org.junit.Rule;
    1212import org.junit.Test;
     13import org.openstreetmap.josm.TestUtils;
    1314import org.openstreetmap.josm.data.APIDataSet;
    1415import org.openstreetmap.josm.data.coor.LatLon;
     
    4950    @Before
    5051    public void bootStrap() {
     52        TestUtils.assumeWorkingJMockit();
    5153        new JOptionPaneSimpleMocker(ImmutableMap.of(
    5254            "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  
    77import org.junit.Test;
    88import org.openstreetmap.josm.Main;
     9import org.openstreetmap.josm.TestUtils;
    910import org.openstreetmap.josm.testutils.JOSMTestRules;
    1011import org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker;
     
    3031    @Test
    3132    public void testAction() {
     33        TestUtils.assumeWorkingJMockit();
    3234        new JOptionPaneSimpleMocker(ImmutableMap.of(
    3335            "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  
    1313import org.junit.Rule;
    1414import org.junit.Test;
     15import org.openstreetmap.josm.TestUtils;
    1516import org.openstreetmap.josm.gui.ExtendedDialog;
    1617import org.openstreetmap.josm.gui.preferences.advanced.PreferencesTable.AllSettingsTableModel;
     
    5051    @Test
    5152    public void testPreferencesTable() {
     53        TestUtils.assumeWorkingJMockit();
    5254        new JOptionPaneSimpleMocker(ImmutableMap.of(
    5355            "Please select the row to edit.", JOptionPane.OK_OPTION,
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceHighLevelTest.java

    r14062 r14081  
    3939
    4040import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     41import mockit.MockUp;
    4142
    4243/**
     
    393394    @Test
    394395    public void testUpdateOnlySelectedPlugin() throws Exception {
     396        TestUtils.assumeWorkingJMockit();
    395397        final PluginServer pluginServer = new PluginServer(
    396398            new PluginServer.RemotePlugin(this.referenceDummyJarNew),
     
    586588    @Test
    587589    public void testUpdateWithNoAvailableUpdates() throws Exception {
     590        TestUtils.assumeWorkingJMockit();
    588591        final PluginServer pluginServer = new PluginServer(
    589592            new PluginServer.RemotePlugin(this.referenceDummyJarOld),
     
    724727    @Test
    725728    public void testInstallWithoutRestartRequired() throws Exception {
     729        TestUtils.assumeWorkingJMockit();
    726730        final boolean[] loadPluginsCalled = new boolean[] {false};
    727         new mockit.MockUp<PluginHandler>() {
     731        new MockUp<PluginHandler>() {
    728732            @mockit.Mock
    729733            private void loadPlugins(
Note: See TracChangeset for help on using the changeset viewer.