Changeset 2498 in josm for trunk/test/functional/org


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

Removed unnecessary setting of OsmPrimitive.incomplete

Location:
trunk/test/functional/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java

    r2401 r2498  
    5656        //
    5757        for (int i=0; i< numNodes; i++) {
    58             Node n = new Node(0);
     58            Node n = new Node();
    5959            n.setCoor(new LatLon(-36.6,47.6));
    6060            n.put("name", "node-"+i);
    61             n.incomplete = false;
    6261            ds.addPrimitive(n);
    6362            nodes.add(n);
     
    6867        //
    6968        for (int i=0; i< numWays; i++) {
    70             Way w = new Way(0);
    71             w.incomplete = false;
     69            Way w = new Way();
    7270            int numNodesInWay = 2 + (int)Math.round(Math.random() * 5);
    7371            int start = (int)Math.round(Math.random() * numNodes);
     
    8684        //
    8785        for (int i=0; i< numRelations; i++) {
    88             Relation r = new Relation(0);
    89             r.incomplete = false;
     86            Relation r = new Relation();
    9087            r.put("name", "relation-" +i);
    9188            int numNodesInRelation = (int)Math.round(Math.random() * 10);
     
    132129
    133130    @BeforeClass
    134     public static void  init() throws OsmTransferException, InterruptedException{
     131    public static void  init() throws OsmTransferException {
    135132        logger.info("initializing ...");
    136133        testProperties = new Properties();
  • trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java

    r2399 r2498  
    6262    protected static void populateTestDataSetWithNodes(DataSet ds) {
    6363        for (int i=0;i<100;i++) {
    64             Node n = new Node(0);
     64            Node n = new Node();
    6565            n.setCoor(new LatLon(-36.6,47.6));
    6666            n.put("name", "node-"+i);
    67             n.incomplete = false;
    6867            ds.addPrimitive(n);
    6968        }
     
    7271    protected static void populateTestDataSetWithWays(DataSet ds) {
    7372        for (int i=0;i<20;i++) {
    74             Way w = new Way(0);
    75             w.incomplete = false;
     73            Way w = new Way();
    7674            for (int j = 0; j < 10;j++) {
    7775                w.addNode(lookupNode(ds, i+j));
     
    8482    protected static void populateTestDataSetWithRelations(DataSet ds) {
    8583        for (int i=0;i<10;i++) {
    86             Relation r = new Relation(0);
    87             r.incomplete = false;
     84            Relation r = new Relation();
    8885            r.put("name", "relation-" +i);
    8986            for (int j =0; j < 10; j++) {
     
    139136
    140137    @BeforeClass
    141     public static void  init() throws OsmTransferException, InterruptedException{
     138    public static void  init() throws OsmTransferException {
    142139        logger.info("initializing ...");
    143140        testProperties = new Properties();
Note: See TracChangeset for help on using the changeset viewer.