Ignore:
Timestamp:
2018-08-12T17:24:32+02:00 (6 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate Main.pref

Location:
trunk/test/unit/org/openstreetmap/josm/gui/preferences
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/advanced/ExportProfileActionTest.java

    r14081 r14149  
    66import org.junit.Rule;
    77import org.junit.Test;
    8 import org.openstreetmap.josm.Main;
    98import org.openstreetmap.josm.TestUtils;
     9import org.openstreetmap.josm.data.Preferences;
    1010import org.openstreetmap.josm.testutils.JOSMTestRules;
    1111import org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker;
     
    3535            "All the preferences of this group are default, nothing to save", JOptionPane.OK_OPTION
    3636        ));
    37         new ExportProfileAction(Main.pref, "foo", "bar").actionPerformed(null);
    38         new ExportProfileAction(Main.pref, "expert", "expert").actionPerformed(null);
     37        new ExportProfileAction(Preferences.main(), "foo", "bar").actionPerformed(null);
     38        new ExportProfileAction(Preferences.main(), "expert", "expert").actionPerformed(null);
    3939    }
    4040}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceHighLevelTest.java

    r14138 r14149  
    2323import org.openstreetmap.josm.Main;
    2424import org.openstreetmap.josm.TestUtils;
     25import org.openstreetmap.josm.data.Preferences;
    2526import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    2627import org.openstreetmap.josm.gui.util.GuiHelper;
     
    9798        this.referenceBazJarOld = new File(TestUtils.getTestDataRoot(), "__files/plugin/baz_plugin.v6.jar");
    9899        this.referenceBazJarNew = new File(TestUtils.getTestDataRoot(), "__files/plugin/baz_plugin.v7.jar");
    99         this.pluginDir = Main.pref.getPluginsDirectory();
     100        this.pluginDir = Preferences.main().getPluginsDirectory();
    100101        this.targetDummyJar = new File(this.pluginDir, "dummy_plugin.jar");
    101102        this.targetDummyJarNew = new File(this.pluginDir, "dummy_plugin.jar.new");
Note: See TracChangeset for help on using the changeset viewer.