Changeset 6881 in josm for trunk/test/unit/org/openstreetmap/josm/data/validation/tests
- Timestamp:
- 2014-02-24T17:49:12+01:00 (11 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/validation/tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/DuplicateNodeTest.java
r6471 r6881 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.Main; 9 import org.openstreetmap.josm.data.Preferences;10 9 import org.openstreetmap.josm.data.coor.LatLon; 11 10 import org.openstreetmap.josm.data.osm.DataSet; … … 15 14 16 15 /** 17 * JUnit Test of "Duplicate node" validation test. 16 * JUnit Test of "Duplicate node" validation test. 18 17 */ 19 18 public class DuplicateNodeTest { 20 19 21 20 /** 22 * Setup test by initializing JOSM preferences and projection. 21 * Setup test by initializing JOSM preferences and projection. 23 22 */ 24 23 @BeforeClass … … 44 43 test.visit(ds.allPrimitives()); 45 44 test.endTest(); 46 45 47 46 assertEquals(1, test.getErrors().size()); 48 47 } -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java
r6677 r6881 28 28 public class MapCSSTagCheckerTest { 29 29 30 /** 31 * Setup test. 32 */ 30 33 @Before 31 34 public void setUp() throws Exception { -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/OpeningHourTestTest.java
r6858 r6881 2 2 package org.openstreetmap.josm.data.validation.tests; 3 3 4 import org.junit.Before; 5 import org.junit.Test; 6 import org.openstreetmap.josm.Main; 7 import org.openstreetmap.josm.data.osm.Tag; 8 import org.openstreetmap.josm.data.validation.Severity; 9 import org.openstreetmap.josm.gui.preferences.map.TaggingPresetPreference; 10 import org.openstreetmap.josm.gui.tagging.TaggingPreset; 11 import org.openstreetmap.josm.gui.tagging.TaggingPresetItem; 12 import org.openstreetmap.josm.gui.tagging.TaggingPresetItems; 13 import org.openstreetmap.josm.gui.tagging.TaggingPresetReader; 14 import org.openstreetmap.josm.gui.tagging.TaggingPresetSearchAction; 4 import static org.CustomMatchers.hasSize; 5 import static org.CustomMatchers.isEmpty; 6 import static org.hamcrest.CoreMatchers.is; 7 import static org.hamcrest.CoreMatchers.not; 8 import static org.junit.Assert.assertThat; 15 9 16 10 import java.util.Arrays; … … 20 14 import java.util.Set; 21 15 22 import static org.CustomMatchers.hasSize; 23 import static org.CustomMatchers.isEmpty; 24 import static org.hamcrest.CoreMatchers.is; 25 import static org.hamcrest.CoreMatchers.not; 26 import static org.junit.Assert.assertThat; 16 import org.junit.Before; 17 import org.junit.Test; 18 import org.openstreetmap.josm.Main; 19 import org.openstreetmap.josm.data.osm.Tag; 20 import org.openstreetmap.josm.data.validation.Severity; 21 import org.openstreetmap.josm.gui.tagging.TaggingPreset; 22 import org.openstreetmap.josm.gui.tagging.TaggingPresetItem; 23 import org.openstreetmap.josm.gui.tagging.TaggingPresetItems; 24 import org.openstreetmap.josm.gui.tagging.TaggingPresetReader; 27 25 28 26 /** 29 * JUnit Test of "Opening hours" validation test. 27 * JUnit Test of "Opening hours" validation test. 30 28 */ 31 29 public class OpeningHourTestTest { … … 33 31 private static final OpeningHourTest OPENING_HOUR_TEST = new OpeningHourTest(); 34 32 33 /** 34 * Setup test. 35 */ 35 36 @Before 36 37 public void setUp() throws Exception { -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/UnconnectedWaysTest.java
r6603 r6881 19 19 UnconnectedWays bib; 20 20 21 /** 22 * Setup test. 23 */ 21 24 @Before 22 25 public void setUp() throws Exception {
Note:
See TracChangeset
for help on using the changeset viewer.