Changeset 3282 in josm for trunk


Ignore:
Timestamp:
2010-05-29T08:50:22+02:00 (15 years ago)
Author:
jttt
Message:

Fix tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/osm/OsmPrimitiveTest.java

    r3056 r3282  
    77import org.junit.Assert;
    88import org.junit.Test;
     9import org.openstreetmap.josm.data.coor.LatLon;
    910
    1011public class OsmPrimitiveTest {
     
    1920    @Test
    2021    public void simpleReferrersTest() {
    21         Node n1 = new Node();
     22        Node n1 = new Node(new LatLon(0.0, 0.0));
    2223        Way w1 = new Way();
    2324        w1.addNode(n1);
     
    2930    @Test
    3031    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));
    3334        Way w1 = new Way();
    3435        w1.addNode(n1);
     
    4546    @Test
    4647    public void multipleReferrers() {
    47         Node n1 = new Node();
     48        Node n1 = new Node(new LatLon(0.0, 0.0));
    4849        Way w1 = new Way();
    4950        Way w2 = new Way();
     
    9091    @Test
    9192    public void removePrimitiveReferrerTest() {
    92         Node n1 = new Node();
     93        Node n1 = new Node(new LatLon(0.0, 0.0));
    9394        Way w1 = new Way();
    9495        w1.addNode(n1);
     
    113114    public void nodeFromMultipleDatasets() {
    114115        // 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));
    116117
    117118        Way w1 = new Way();
Note: See TracChangeset for help on using the changeset viewer.