Changeset 9458 in josm for trunk/test/unit


Ignore:
Timestamp:
2016-01-15T02:11:39+01:00 (9 years ago)
Author:
Don-vip
Message:

timeouts for unit/performance tests

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPaintPreferenceTest.java

    r9400 r9458  
    1111
    1212import org.junit.BeforeClass;
     13import org.junit.Rule;
    1314import org.junit.Test;
     15import org.junit.rules.Timeout;
    1416import org.openstreetmap.josm.JOSMFixture;
    1517import org.openstreetmap.josm.gui.mappaint.MapPaintStyles;
     
    3032
    3133    /**
     34     * Global timeout applied to all test methods.
     35     */
     36    @Rule
     37    public Timeout globalTimeout = Timeout.seconds(10*60);
     38
     39    /**
    3240     * Setup test.
    3341     */
     
    4250     * @throws ParseException if the config file does not match MapCSS syntax
    4351     */
    44     @Test(timeout = 10*60*1000)
     52    @Test
    4553    public void testValidityOfAvailableStyles() throws ParseException, IOException {
    4654        Collection<ExtendedSourceEntry> sources = new MapPaintPreference.MapPaintSourceEditor()
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreferenceTest.java

    r9166 r9458  
    1212
    1313import org.junit.BeforeClass;
     14import org.junit.Rule;
    1415import org.junit.Test;
     16import org.junit.rules.Timeout;
    1517import org.openstreetmap.josm.JOSMFixture;
    1618import org.openstreetmap.josm.Main;
     
    2628
    2729    /**
     30     * Global timeout applied to all test methods.
     31     */
     32    @Rule
     33    public Timeout globalTimeout = Timeout.seconds(10*60);
     34
     35    /**
    2836     * Setup test.
    2937     */
     
    3644     * Test that available tagging presets are valid.
    3745     */
    38     @Test(timeout = 10*60*1000)
     46    @Test
    3947    public void testValidityOfAvailablePresets() {
    4048        Collection<ExtendedSourceEntry> sources = new TaggingPresetPreference.TaggingPresetSourceEditor()
  • trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTest.java

    r9429 r9458  
    1212
    1313import org.junit.BeforeClass;
     14import org.junit.Rule;
    1415import org.junit.Test;
     16import org.junit.rules.Timeout;
    1517import org.openstreetmap.josm.JOSMFixture;
    1618import org.openstreetmap.josm.Main;
     
    2123 */
    2224public class PluginHandlerTest {
     25
     26    /**
     27     * Global timeout applied to all test methods.
     28     */
     29    @Rule
     30    public Timeout globalTimeout = Timeout.seconds(10*60);
    2331
    2432    /**
     
    3341     * Test that available plugins rules can be loaded.
    3442     */
    35     @Test(timeout = 10*60*1000)
     43    @Test
    3644    public void testValidityOfAvailablePlugins() {
    3745        // Download complete list of plugins
Note: See TracChangeset for help on using the changeset viewer.