Changeset 6603 in josm for trunk/test/unit/org/openstreetmap/josm/data
- Timestamp:
- 2014-01-03T04:51:04+01:00 (11 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/validation/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java
r6601 r6603 1 1 package org.openstreetmap.josm.data.validation.tests; 2 2 3 import org.junit.Before; 4 import org.junit.Test; 5 import org.openstreetmap.TestUtils; 6 import org.openstreetmap.josm.Main; 7 import org.openstreetmap.josm.command.ChangePropertyCommand; 8 import org.openstreetmap.josm.data.Preferences; 9 import org.openstreetmap.josm.data.osm.Node; 10 import org.openstreetmap.josm.data.osm.OsmPrimitive; 11 import org.openstreetmap.josm.data.osm.Tag; 12 import org.openstreetmap.josm.data.validation.Severity; 13 import org.openstreetmap.josm.data.validation.TestError; 14 import org.openstreetmap.josm.tools.Predicate; 15 import org.openstreetmap.josm.tools.Predicates; 16 import org.openstreetmap.josm.tools.Utils; 3 import static org.hamcrest.CoreMatchers.is; 4 import static org.hamcrest.CoreMatchers.notNullValue; 5 import static org.junit.Assert.assertFalse; 6 import static org.junit.Assert.assertThat; 7 import static org.junit.Assert.assertTrue; 17 8 18 9 import java.io.StringReader; … … 22 13 import java.util.Map; 23 14 24 import static org.hamcrest.CoreMatchers.is; 25 import static org.hamcrest.CoreMatchers.notNullValue; 26 import static org.junit.Assert.assertFalse; 27 import static org.junit.Assert.assertThat; 28 import static org.junit.Assert.assertTrue; 15 import org.junit.Before; 16 import org.junit.Test; 17 import org.openstreetmap.TestUtils; 18 import org.openstreetmap.josm.Main; 19 import org.openstreetmap.josm.command.ChangePropertyCommand; 20 import org.openstreetmap.josm.data.osm.Node; 21 import org.openstreetmap.josm.data.osm.OsmPrimitive; 22 import org.openstreetmap.josm.data.osm.Tag; 23 import org.openstreetmap.josm.data.validation.Severity; 24 import org.openstreetmap.josm.data.validation.TestError; 25 import org.openstreetmap.josm.tools.Predicate; 26 import org.openstreetmap.josm.tools.Utils; 29 27 30 28 public class MapCSSTagCheckerTest { … … 32 30 @Before 33 31 public void setUp() throws Exception { 34 Main. pref = newPreferences();32 Main.initApplicationPreferences(); 35 33 } 36 34 -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/UnconnectedWaysTest.java
r6556 r6603 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.validation.tests; 3 4 import static org.CustomMatchers.isEmpty; 5 import static org.junit.Assert.assertThat; 6 7 import java.io.FileInputStream; 3 8 4 9 import org.junit.Before; 5 10 import org.junit.Test; 6 11 import org.openstreetmap.josm.Main; 7 import org.openstreetmap.josm.data.Preferences;8 12 import org.openstreetmap.josm.data.osm.DataSet; 9 13 import org.openstreetmap.josm.data.projection.Projections; 10 14 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 11 15 import org.openstreetmap.josm.io.OsmReader; 12 13 import java.io.FileInputStream;14 15 import static org.CustomMatchers.isEmpty;16 import static org.junit.Assert.assertThat;17 16 18 17 public class UnconnectedWaysTest { … … 23 22 public void setUp() throws Exception { 24 23 bib = new UnconnectedWays.UnconnectedHighways(); 25 Main. pref = newPreferences();24 Main.initApplicationPreferences(); 26 25 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); 27 26 bib.initialize();
Note:
See TracChangeset
for help on using the changeset viewer.