Changeset 14770 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2019-02-09T01:20:21+01:00 (6 years ago)
Author:
Don-vip
Message:

see #16912 - Ignore HeadlessException with JavaFX components. Issue hard to solve and we're not interested by that

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java

    r14239 r14770  
    77
    88import java.awt.GraphicsEnvironment;
     9import java.awt.HeadlessException;
    910import java.util.Arrays;
    1011import java.util.Collection;
     
    146147            Throwable root = ExceptionUtils.getRootCause(t);
    147148            root.printStackTrace();
    148             layerExceptions.put(findFaultyPlugin(loadedPlugins, root), root);
     149            // Ignore HeadlessException with JavaFX components. Issue hard to solve and we're not interested by that
     150            if (!(t instanceof HeadlessException)) {
     151                layerExceptions.put(findFaultyPlugin(loadedPlugins, root), root);
     152            }
    149153        }
    150154    }
Note: See TracChangeset for help on using the changeset viewer.