Changeset 3402 in josm


Ignore:
Timestamp:
2010-08-02T08:56:53+02:00 (9 years ago)
Author:
jttt
Message:

Fix tests

File:
1 edited

Legend:

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

    r3367 r3402  
    22package org.openstreetmap.josm.data.osm;
    33
    4 import static org.junit.Assert.assertNotNull;
    54import static org.junit.Assert.assertTrue;
    65
     
    3332    public void basic_test() throws ParseError {
    3433        DataSet ds = new DataSet();
    35         Node n1 = new Node(1);
     34        Node n1 = new Node();
    3635        n1.put("amenity", "parking");
    37         Node n2 = new Node(2);
     36        Node n2 = new Node();
    3837        n2.put("fixme", "continue");
    3938        ds.addPrimitive(n1);
    4039        ds.addPrimitive(n2);
    41         OsmPrimitive p = ds.getPrimitiveById(1,OsmPrimitiveType.NODE);
    42         assertNotNull(p);
    4340
    4441        Collection<OsmPrimitive> all = new HashSet<OsmPrimitive>();
Note: See TracChangeset for help on using the changeset viewer.