Ignore:
Timestamp:
2023-08-08T21:24:36+02:00 (2 years ago)
Author:
taylor.smock
Message:

See r18798: Actually use the @Territories annotation

This also fixes some tests that fail with specific options, but were passing due
to run order.

File:
1 edited

Legend:

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

    r18637 r18799  
    2020import java.util.Objects;
    2121import java.util.Set;
     22import java.util.concurrent.TimeUnit;
    2223import java.util.function.Consumer;
    2324import java.util.logging.Handler;
     
    2728import org.junit.jupiter.api.BeforeAll;
    2829import org.junit.jupiter.api.Test;
     30import org.junit.jupiter.api.Timeout;
    2931import org.junit.jupiter.api.extension.RegisterExtension;
    3032import org.junit.platform.commons.util.ReflectionUtils;
     
    4042import org.openstreetmap.josm.spi.preferences.Config;
    4143import org.openstreetmap.josm.testutils.JOSMTestRules;
     44import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
     45import org.openstreetmap.josm.testutils.annotations.Main;
     46import org.openstreetmap.josm.testutils.annotations.Projection;
     47import org.openstreetmap.josm.testutils.annotations.Territories;
    4248import org.openstreetmap.josm.tools.Destroyable;
    4349import org.openstreetmap.josm.tools.Logging;
     
    4955 * Integration tests of {@link PluginHandler} class.
    5056 */
     57@BasicPreferences
     58@Main
     59@Projection
     60@Territories
     61@Timeout(value = 10, unit = TimeUnit.MINUTES)
    5162public class PluginHandlerTestIT {
    5263
     
    5768    @RegisterExtension
    5869    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    59     public static JOSMTestRules test = new JOSMTestRules().main().projection().preferences().https()
    60             .territories().timeout(10 * 60 * 1000);
     70    public static JOSMTestRules test = new JOSMTestRules().https();
    6171
    6272    /**
Note: See TracChangeset for help on using the changeset viewer.