- Timestamp:
- 2010-05-29T08:50:22+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/OsmPrimitiveTest.java
r3056 r3282 7 7 import org.junit.Assert; 8 8 import org.junit.Test; 9 import org.openstreetmap.josm.data.coor.LatLon; 9 10 10 11 public class OsmPrimitiveTest { … … 19 20 @Test 20 21 public void simpleReferrersTest() { 21 Node n1 = new Node( );22 Node n1 = new Node(new LatLon(0.0, 0.0)); 22 23 Way w1 = new Way(); 23 24 w1.addNode(n1); … … 29 30 @Test 30 31 public void addAndRemoveReferrer() { 31 Node n1 = new Node( );32 Node n2 = new Node( );32 Node n1 = new Node(new LatLon(0.0, 0.0)); 33 Node n2 = new Node(new LatLon(0.0, 0.0)); 33 34 Way w1 = new Way(); 34 35 w1.addNode(n1); … … 45 46 @Test 46 47 public void multipleReferrers() { 47 Node n1 = new Node( );48 Node n1 = new Node(new LatLon(0.0, 0.0)); 48 49 Way w1 = new Way(); 49 50 Way w2 = new Way(); … … 90 91 @Test 91 92 public void removePrimitiveReferrerTest() { 92 Node n1 = new Node( );93 Node n1 = new Node(new LatLon(0.0, 0.0)); 93 94 Way w1 = new Way(); 94 95 w1.addNode(n1); … … 113 114 public void nodeFromMultipleDatasets() { 114 115 // n has two referrers - w1 and w2. But only w1 is returned because it is in the same dataset as n 115 Node n = new Node( );116 Node n = new Node(new LatLon(0.0, 0.0)); 116 117 117 118 Way w1 = new Way();
Note:
See TracChangeset
for help on using the changeset viewer.