Changeset 14239 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2018-09-10T00:04:42+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java
r14235 r14239 6 6 import static org.junit.Assert.assertTrue; 7 7 8 import java.awt.GraphicsEnvironment; 8 9 import java.util.Arrays; 9 10 import java.util.Collection; … … 29 30 import org.openstreetmap.josm.spi.preferences.Config; 30 31 import org.openstreetmap.josm.testutils.JOSMTestRules; 32 import org.openstreetmap.josm.tools.Utils; 31 33 32 34 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; … … 112 114 } 113 115 } 116 117 // On Java 9/10 and headless mode, filter plugins requiring JavaFX as Monocle is not available 118 int javaVersion = Utils.getJavaVersion(); 119 if (GraphicsEnvironment.isHeadless() && javaVersion >= 9 && javaVersion <= 10) { 120 for (Iterator<PluginInformation> it = plugins.iterator(); it.hasNext();) { 121 PluginInformation pi = it.next(); 122 if (pi.getRequiredPlugins().contains("openjfx")) { 123 System.out.println("Ignoring " + pi.name + " (requiring JavaFX and we're using Java 9/10 in headless mode)"); 124 it.remove(); 125 } 126 } 127 } 128 114 129 System.out.println("Filtered plugin list contains " + plugins.size() + " plugins"); 115 130
Note:
See TracChangeset
for help on using the changeset viewer.