Changeset 12568 in josm for trunk/test/unit/org/openstreetmap/josm/data
- Timestamp:
- 2017-08-04T20:03:38+02:00 (7 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/validation/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/ConditionalKeysTest.java
r11403 r12568 6 6 7 7 import org.junit.Before; 8 import org.junit.Rule; 8 9 import org.junit.Test; 9 import org.openstreetmap.josm.JOSMFixture; 10 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresets; 10 import org.openstreetmap.josm.testutils.JOSMTestRules; 11 12 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 11 13 12 14 /** … … 19 21 /** 20 22 * Setup test 23 */ 24 @Rule 25 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 26 public JOSMTestRules rule = new JOSMTestRules().presets(); 27 28 /** 29 * Setup test 21 30 * @throws Exception if an error occurs 22 31 */ 23 32 @Before 24 33 public void setUp() throws Exception { 25 JOSMFixture.createUnitTestFixture().init();26 TaggingPresets.readFromPreferences();27 34 test.initialize(); 28 35 } -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MultipolygonTestTest.java
r12564 r12568 35 35 @Rule 36 36 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 37 public JOSMTestRules test = new JOSMTestRules().projection(). preferences();37 public JOSMTestRules test = new JOSMTestRules().projection().mapStyles().presets().main().platform(); 38 38 39 39 private static Way createUnclosedWay(String tags) { -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java
r10743 r12568 10 10 import java.util.List; 11 11 12 import org.junit. BeforeClass;12 import org.junit.Rule; 13 13 import org.junit.Test; 14 import org.openstreetmap.josm.JOSMFixture;15 14 import org.openstreetmap.josm.data.osm.OsmPrimitive; 16 15 import org.openstreetmap.josm.data.osm.OsmUtils; 17 16 import org.openstreetmap.josm.data.osm.Tag; 18 17 import org.openstreetmap.josm.data.validation.TestError; 19 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresets; 18 import org.openstreetmap.josm.testutils.JOSMTestRules; 19 20 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 20 21 21 22 /** … … 27 28 * Setup test. 28 29 */ 29 @BeforeClass 30 public static void setUp() { 31 JOSMFixture.createUnitTestFixture().init(); 32 TaggingPresets.readFromPreferences(); 33 } 30 @Rule 31 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 32 public JOSMTestRules rule = new JOSMTestRules().presets(); 34 33 35 34 List<TestError> test(OsmPrimitive primitive) throws IOException {
Note:
See TracChangeset
for help on using the changeset viewer.