Changeset 3577 in josm for trunk/test/unit/org/openstreetmap/josm/data
- Timestamp:
- 2010-10-01T19:26:20+02:00 (14 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/osm
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/APIDataSetTest.java
r3025 r3577 7 7 import java.util.List; 8 8 9 import org.junit.BeforeClass; 9 10 import org.junit.Test; 11 import org.openstreetmap.josm.Main; 10 12 import org.openstreetmap.josm.actions.upload.CyclicUploadDependencyException; 11 13 import org.openstreetmap.josm.data.APIDataSet; 14 import org.openstreetmap.josm.data.Preferences; 12 15 13 16 14 17 public class APIDataSetTest { 15 18 19 @BeforeClass 20 public static void init() { 21 Main.pref = new Preferences(); 22 } 16 23 17 24 @Test -
trunk/test/unit/org/openstreetmap/josm/data/osm/DataSetMergerTest.java
r3459 r3577 15 15 import org.junit.After; 16 16 import org.junit.Before; 17 import org.junit.BeforeClass; 17 18 import org.junit.Test; 18 19 import org.openstreetmap.josm.Main; 20 import org.openstreetmap.josm.data.Preferences; 19 21 import org.openstreetmap.josm.data.coor.LatLon; 20 22 import org.openstreetmap.josm.data.projection.Mercator; … … 59 61 }*/ 60 62 63 @BeforeClass 64 public static void init() { 65 Main.pref = new Preferences(); 66 } 67 61 68 private DataSet my; 62 69 private DataSet their; -
trunk/test/unit/org/openstreetmap/josm/data/osm/FilterTest.java
r3459 r3577 17 17 import org.openstreetmap.josm.actions.search.SearchAction.SearchMode; 18 18 import org.openstreetmap.josm.actions.search.SearchCompiler.ParseError; 19 import org.openstreetmap.josm.data.Preferences; 19 20 import org.openstreetmap.josm.data.coor.LatLon; 20 21 import org.openstreetmap.josm.data.projection.Mercator; … … 25 26 26 27 public class FilterTest { 28 27 29 @BeforeClass 28 30 public static void setUp() { 29 31 Main.proj = new Mercator(); 32 Main.pref = new Preferences(); 30 33 } 31 34 -
trunk/test/unit/org/openstreetmap/josm/data/osm/OsmPrimitiveKeyHandling.java
r2917 r3577 4 4 import static org.junit.Assert.assertTrue; 5 5 6 import org.junit.BeforeClass; 6 7 import org.junit.Test; 8 import org.openstreetmap.josm.Main; 9 import org.openstreetmap.josm.data.Preferences; 7 10 import org.openstreetmap.josm.data.coor.LatLon; 8 11 … … 10 13 * Some unit test cases for basic tag management on {@see OsmPrimitive}. Uses 11 14 * {@see Node} for the tests, {@see OsmPrimitive} is abstract. 12 * 15 * 13 16 */ 14 17 public class OsmPrimitiveKeyHandling { 18 19 @BeforeClass 20 public static void init() { 21 Main.pref = new Preferences(); 22 } 15 23 16 24 /** … … 30 38 /** 31 39 * Add a tag to an empty node and test the query and get methods. 32 * 40 * 33 41 */ 34 42 @Test … … 62 70 /** 63 71 * Remove tags from a node with two tags and test the state of the node. 64 * 72 * 65 73 */ 66 74 @Test … … 90 98 /** 91 99 * Remove all tags from a node 92 * 100 * 93 101 */ 94 102 @Test -
trunk/test/unit/org/openstreetmap/josm/data/osm/OsmPrimitiveTest.java
r3459 r3577 9 9 import org.junit.Test; 10 10 import org.openstreetmap.josm.Main; 11 import org.openstreetmap.josm.data.Preferences; 11 12 import org.openstreetmap.josm.data.coor.LatLon; 12 13 import org.openstreetmap.josm.data.projection.Mercator; 13 14 14 15 public class OsmPrimitiveTest { 16 17 @BeforeClass 18 public static void init() { 19 Main.pref = new Preferences(); 20 } 15 21 16 22 private void compareReferrers(OsmPrimitive actual, OsmPrimitive... expected) { -
trunk/test/unit/org/openstreetmap/josm/data/osm/QuadBucketsTest.java
r3476 r3577 11 11 import org.fest.reflect.reference.TypeRef; 12 12 import org.junit.Assert; 13 import org.junit.BeforeClass; 13 14 import org.junit.Test; 14 15 import org.openstreetmap.josm.Main; 16 import org.openstreetmap.josm.data.Preferences; 15 17 import org.openstreetmap.josm.data.coor.LatLon; 16 18 import org.openstreetmap.josm.data.projection.Mercator; … … 19 21 20 22 public class QuadBucketsTest { 23 24 @BeforeClass 25 public static void init() { 26 Main.pref = new Preferences(); 27 } 21 28 22 29 private void removeAllTest(DataSet ds) { -
trunk/test/unit/org/openstreetmap/josm/data/osm/RelationTest.java
r3283 r3577 8 8 import org.junit.Test; 9 9 import org.openstreetmap.josm.Main; 10 import org.openstreetmap.josm.data.Preferences; 10 11 import org.openstreetmap.josm.data.coor.LatLon; 11 12 import org.openstreetmap.josm.data.projection.Mercator; … … 16 17 public static void setUp() { 17 18 Main.proj = new Mercator(); 19 Main.pref = new Preferences(); 18 20 } 19 21 -
trunk/test/unit/org/openstreetmap/josm/data/osm/visitor/MergeSourceBuildingVisitorTest.java
r3284 r3577 12 12 import org.junit.Test; 13 13 import org.openstreetmap.josm.Main; 14 import org.openstreetmap.josm.data.Preferences; 14 15 import org.openstreetmap.josm.data.coor.LatLon; 15 16 import org.openstreetmap.josm.data.osm.DataSet; … … 37 38 public static void setUp() { 38 39 Main.proj = new Mercator(); 40 Main.pref = new Preferences(); 39 41 } 40 42
Note:
See TracChangeset
for help on using the changeset viewer.