Changeset 14153 in josm for trunk/test/unit/org/openstreetmap/josm/gui
- Timestamp:
- 2018-08-13T02:18:54+02:00 (6 years ago)
- 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 659 659 /* PropertyChangeListener */ 660 660 /* ----------------------------------------------------------------------------- */ 661 @SuppressWarnings("unchecked")662 661 @Test 663 662 public void testAddPropertyChangeListener() throws ReflectiveOperationException { … … 675 674 } 676 675 677 @SuppressWarnings("unchecked")678 676 @Test 679 677 public void testRemovePropertyChangeListener() throws ReflectiveOperationException { … … 711 709 public ArrayList<PropertyChangeEvent> events = new ArrayList<>(); 712 710 711 @Override 713 712 public void propertyChange(PropertyChangeEvent evt) { 714 713 events.add(evt); -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceHighLevelTest.java
r14149 r14153 9 9 10 10 import java.awt.Component; 11 import java.awt.Window;12 11 import java.io.File; 13 12 import java.nio.file.Files; … … 21 20 import org.junit.Rule; 22 21 import org.junit.Test; 23 import org.openstreetmap.josm.Main;24 22 import org.openstreetmap.josm.TestUtils; 25 23 import org.openstreetmap.josm.data.Preferences; … … 69 67 @Before 70 68 public void setUp() throws ReflectiveOperationException { 71 if (!java.awt.GraphicsEnvironment.isHeadless()) {72 originalMainParent = Main.parent;73 Main.parent = new Window(null);74 }75 69 76 70 // some other tests actually go ahead and load plugins (notably at time of writing, … … 120 114 pluginList.clear(); 121 115 pluginList.addAll(this.originalPluginList); 122 123 if (!java.awt.GraphicsEnvironment.isHeadless()) {124 Main.parent = originalMainParent;125 }126 116 } 127 117 128 118 private Collection<PluginProxy> originalPluginList; 129 130 private Component originalMainParent;131 119 132 120 private File pluginDir;
Note:
See TracChangeset
for help on using the changeset viewer.