Changeset 19209 in josm


Ignore:
Timestamp:
2024-09-05T18:38:11+02:00 (10 days ago)
Author:
taylor.smock
Message:

Add @Plugins annotation to clean up after plugins have been loaded in tests

This should help reduce the issues related to plugins not being unloaded after
PluginHandlerTestIT when tests are run locally with a UI -- the primary cause
of problems is the SDS plugin though.

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

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/MainApplicationTest.java

    r19121 r19209  
    5858import org.openstreetmap.josm.testutils.annotations.Main;
    5959import org.openstreetmap.josm.testutils.annotations.OsmApi;
     60import org.openstreetmap.josm.testutils.annotations.Plugins;
    6061import org.openstreetmap.josm.testutils.annotations.Projection;
    6162import org.openstreetmap.josm.tools.Logging;
     
    171172     * @throws PluginListParseException if an error occurs
    172173     */
     174    @Plugins
    173175    @Test
    174176    void testUpdateAndLoadPlugins() throws PluginListParseException {
  • trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java

    r19109 r19209  
    4343import org.openstreetmap.josm.testutils.annotations.HTTPS;
    4444import org.openstreetmap.josm.testutils.annotations.Main;
     45import org.openstreetmap.josm.testutils.annotations.Plugins;
    4546import org.openstreetmap.josm.testutils.annotations.Projection;
    4647import org.openstreetmap.josm.testutils.annotations.Territories;
     48import org.openstreetmap.josm.testutils.annotations.ThreadSync;
    4749import org.openstreetmap.josm.tools.Destroyable;
    4850import org.openstreetmap.josm.tools.Logging;
     
    5860@Territories
    5961@Timeout(value = 10, unit = TimeUnit.MINUTES)
     62@ThreadSync
     63@Plugins
    6064public class PluginHandlerTestIT {
    6165
Note: See TracChangeset for help on using the changeset viewer.