Changeset 14235 in josm for trunk/test/unit
- Timestamp:
- 2018-09-09T20:10:25+02:00 (6 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/DomainValidatorTestIT.java
r12620 r14235 47 47 import java.util.regex.Pattern; 48 48 49 import org.junit.Rule; 49 50 import org.junit.Test; 51 import org.openstreetmap.josm.testutils.JOSMTestRules; 50 52 import org.openstreetmap.josm.tools.Logging; 51 53 … … 58 60 */ 59 61 public class DomainValidatorTestIT { 62 63 /** 64 * Setup rule 65 */ 66 @Rule 67 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 68 public JOSMTestRules test = new JOSMTestRules().https(); 60 69 61 70 /** -
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTestIT.java
r14142 r14235 22 22 @Rule 23 23 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 24 public JOSMTestRules test = new JOSMTestRules(). projection();24 public JOSMTestRules test = new JOSMTestRules().https().projection(); 25 25 26 26 /** -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPaintPreferenceTestIT.java
r14201 r14235 9 9 import java.util.Map; 10 10 11 import org.junit.BeforeClass;12 11 import org.junit.Rule; 13 12 import org.junit.Test; 14 import org.junit.rules.Timeout;15 import org.openstreetmap.josm.JOSMFixture;16 13 import org.openstreetmap.josm.data.preferences.sources.ExtendedSourceEntry; 17 14 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles; … … 23 20 import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSRule; 24 21 import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource; 22 import org.openstreetmap.josm.testutils.JOSMTestRules; 25 23 import org.openstreetmap.josm.tools.ImageProvider; 26 24 … … 33 31 34 32 /** 35 * Global timeout applied to all test methods.33 * Setup rule 36 34 */ 37 35 @Rule 38 36 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 39 public Timeout globalTimeout = Timeout.seconds(15*60); 40 41 /** 42 * Setup test. 43 */ 44 @BeforeClass 45 public static void setUpBeforeClass() { 46 JOSMFixture.createUnitTestFixture().init(); 47 } 37 public JOSMTestRules test = new JOSMTestRules().https().timeout(15000*60); 48 38 49 39 /** -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreferenceTestIT.java
r12849 r14235 12 12 import java.util.Set; 13 13 14 import org.junit.BeforeClass;15 14 import org.junit.Rule; 16 15 import org.junit.Test; 17 import org.junit.rules.Timeout;18 import org.openstreetmap.josm.JOSMFixture;19 16 import org.openstreetmap.josm.data.preferences.sources.ExtendedSourceEntry; 20 17 import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset; 21 18 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetReader; 22 19 import org.openstreetmap.josm.spi.preferences.Config; 20 import org.openstreetmap.josm.testutils.JOSMTestRules; 23 21 import org.openstreetmap.josm.tools.ImageProvider; 24 22 import org.openstreetmap.josm.tools.Logging; … … 33 31 34 32 /** 35 * Global timeout applied to all test methods.33 * Setup rule 36 34 */ 37 35 @Rule 38 36 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 39 public Timeout globalTimeout = Timeout.seconds(10*60); 40 41 /** 42 * Setup test. 43 */ 44 @BeforeClass 45 public static void setUpBeforeClass() { 46 JOSMFixture.createUnitTestFixture().init(); 47 } 37 public JOSMTestRules test = new JOSMTestRules().https().timeout(10000*60); 48 38 49 39 /** -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/validator/ValidatorTagCheckerRulesPreferenceTestIT.java
r12649 r14235 9 9 import java.util.Collection; 10 10 11 import org.junit. BeforeClass;11 import org.junit.Rule; 12 12 import org.junit.Test; 13 import org.openstreetmap.josm.JOSMFixture;14 13 import org.openstreetmap.josm.data.preferences.sources.ExtendedSourceEntry; 15 14 import org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker; 16 15 import org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.ParseResult; 16 import org.openstreetmap.josm.testutils.JOSMTestRules; 17 18 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 17 19 18 20 /** … … 22 24 23 25 /** 24 * Setup test.26 * Setup rule 25 27 */ 26 @BeforeClass 27 public static void setUpBeforeClass() { 28 JOSMFixture.createUnitTestFixture().init(); 29 } 28 @Rule 29 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 30 public JOSMTestRules test = new JOSMTestRules().https(); 30 31 31 32 /** -
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java
r14149 r14235 42 42 @Rule 43 43 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 44 public JOSMTestRules test = new JOSMTestRules().main().projection().preferences(). timeout(10*60*1000);44 public JOSMTestRules test = new JOSMTestRules().main().projection().preferences().https().timeout(10*60*1000); 45 45 46 46 /**
Note:
See TracChangeset
for help on using the changeset viewer.