Ignore:
Timestamp:
2018-08-13T02:18:54+02:00 (6 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate Main.parent and Main itself

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

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergeModelTest.java

    r14092 r14153  
    659659    /* PropertyChangeListener                                                        */
    660660    /* ----------------------------------------------------------------------------- */
    661     @SuppressWarnings("unchecked")
    662661    @Test
    663662    public void testAddPropertyChangeListener() throws ReflectiveOperationException {
     
    675674    }
    676675
    677     @SuppressWarnings("unchecked")
    678676    @Test
    679677    public void testRemovePropertyChangeListener() throws ReflectiveOperationException {
     
    711709            public ArrayList<PropertyChangeEvent> events = new ArrayList<>();
    712710
     711            @Override
    713712            public void propertyChange(PropertyChangeEvent evt) {
    714713                events.add(evt);
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceHighLevelTest.java

    r14149 r14153  
    99
    1010import java.awt.Component;
    11 import java.awt.Window;
    1211import java.io.File;
    1312import java.nio.file.Files;
     
    2120import org.junit.Rule;
    2221import org.junit.Test;
    23 import org.openstreetmap.josm.Main;
    2422import org.openstreetmap.josm.TestUtils;
    2523import org.openstreetmap.josm.data.Preferences;
     
    6967    @Before
    7068    public void setUp() throws ReflectiveOperationException {
    71         if (!java.awt.GraphicsEnvironment.isHeadless()) {
    72             originalMainParent = Main.parent;
    73             Main.parent = new Window(null);
    74         }
    7569
    7670        // some other tests actually go ahead and load plugins (notably at time of writing,
     
    120114        pluginList.clear();
    121115        pluginList.addAll(this.originalPluginList);
    122 
    123         if (!java.awt.GraphicsEnvironment.isHeadless()) {
    124             Main.parent = originalMainParent;
    125         }
    126116    }
    127117
    128118    private Collection<PluginProxy> originalPluginList;
    129 
    130     private Component originalMainParent;
    131119
    132120    private File pluginDir;
Note: See TracChangeset for help on using the changeset viewer.