Changeset 2498 in josm for trunk/test/unit


Ignore:
Timestamp:
2009-11-22T12:45:38+01:00 (15 years ago)
Author:
jttt
Message:

Removed unnecessary setting of OsmPrimitive.incomplete

Location:
trunk/test/unit/org/openstreetmap/josm/data/osm
Files:
3 edited

Legend:

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

    r2381 r2498  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.data.osm;
     3
     4import static org.junit.Assert.assertEquals;
     5import static org.junit.Assert.fail;
    36
    47import java.util.List;
    58
    69import org.junit.Test;
    7 import static org.junit.Assert.*;
    8 
    910import org.openstreetmap.josm.actions.upload.CyclicUploadDependencyException;
    1011import org.openstreetmap.josm.data.APIDataSet;
     
    1819        Relation r = new Relation();
    1920        r.put("name", "r1");
    20         r.incomplete = false;
    2121        DataSet ds = new DataSet();
    2222        ds.addPrimitive(r);
     
    3939        Relation r1 = new Relation();
    4040        r1.put("name", "r1");
    41         r1.incomplete = false;
    4241
    4342        Relation r2 = new Relation();
    4443        r2.put("name", "r2");
    45         r2.incomplete = false;
    4644
    4745        r1.addMember(new RelationMember("", r2));
     
    6967        Relation r1 = new Relation();
    7068        r1.put("name", "r1");
    71         r1.incomplete = false;
    7269
    7370        Relation r2 = new Relation();
    7471        r2.put("name", "r2");
    75         r2.incomplete = false;
    7672
    7773        Relation r3 = new Relation();
    7874        r3.put("name", "r3");
    79         r3.incomplete = false;
    8075
    8176        Relation r4 = new Relation(1);
     
    116111        Relation r1 = new Relation();
    117112        r1.put("name", "r1");
    118         r1.incomplete = false;
    119113
    120114        Relation r2 = new Relation();
    121115        r2.put("name", "r2");
    122         r2.incomplete = false;
    123116
    124117        Relation r3 = new Relation();
    125118        r3.put("name", "r3");
    126         r3.incomplete = false;
    127119
    128120        r1.addMember(new RelationMember("", r2));
     
    152144        Relation r1 = new Relation();
    153145        r1.put("name", "r1");
    154         r1.incomplete = false;
    155146
    156147        Relation r2 = new Relation();
    157148        r2.put("name", "r2");
    158         r2.incomplete = false;
    159149
    160150        Relation r3 = new Relation();
    161151        r3.put("name", "r3");
    162         r3.incomplete = false;
    163152
    164153        r1.addMember(new RelationMember("", r2));
  • trunk/test/unit/org/openstreetmap/josm/data/osm/DataSetMergerTest.java

    r2471 r2498  
    10011001
    10021002        Way w3 = new Way(3);
    1003         w3.incomplete = true;
    10041003        w3.setNodes(Arrays.asList(n1,n2));
    10051004        their.addPrimitive(w3);
     
    10511050        // an incomplete way with two incomplete nodes
    10521051        Way w3 = new Way(3);
    1053         w3.incomplete = true;
    10541052        w3.setNodes(Arrays.asList(n1,n2));
    10551053        their.addPrimitive(w3);
  • trunk/test/unit/org/openstreetmap/josm/data/osm/visitor/MergeSourceBuildingVisitorTest.java

    r2388 r2498  
    136136        DataSet source = new DataSet();
    137137        Way w1 = new Way(3);
    138         w1.incomplete = true;
    139138        source.addPrimitive(w1);
    140139        source.setSelected(w1);
Note: See TracChangeset for help on using the changeset viewer.