Changeset 3459 in josm for trunk/test


Ignore:
Timestamp:
2010-08-23T21:12:50+02:00 (9 years ago)
Author:
jttt
Message:

Fix tests

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

Legend:

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

    r3362 r3459  
    607607     */
    608608    @Test
    609     public void waySimple_TheirVersionNotVisible() {
     609    public void waySimple_TheirVersionNotVisibleMyIsModified() {
    610610
    611611
     
    622622        myWay.addNode(mn1);
    623623        myWay.addNode(mn2);
     624        myWay.setModified(true);
    624625        my.addPrimitive(myWay);
    625626
  • trunk/test/unit/org/openstreetmap/josm/data/osm/FilterTest.java

    r3402 r3459  
    1717import org.openstreetmap.josm.actions.search.SearchAction.SearchMode;
    1818import org.openstreetmap.josm.actions.search.SearchCompiler.ParseError;
     19import org.openstreetmap.josm.data.coor.LatLon;
    1920import org.openstreetmap.josm.data.projection.Mercator;
    2021import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
     
    3233    public void basic_test() throws ParseError {
    3334        DataSet ds = new DataSet();
    34         Node n1 = new Node();
     35        Node n1 = new Node(new LatLon(0, 0));
    3536        n1.put("amenity", "parking");
    36         Node n2 = new Node();
     37        Node n2 = new Node(new LatLon(0, 0));
    3738        n2.put("fixme", "continue");
    3839        ds.addPrimitive(n1);
  • trunk/test/unit/org/openstreetmap/josm/data/osm/OsmPrimitiveTest.java

    r3283 r3459  
    7070    @Test
    7171    public void removeMemberFromRelationReferrerTest() {
    72         Node n1 = new Node();
     72        Node n1 = new Node(new LatLon(0, 0));
    7373        Relation r1 = new Relation();
    7474        r1.addMember(new RelationMember("", n1));
     
    8282    @Test
    8383    public void setRelationMemberReferrerTest() {
    84         Node n1 = new Node();
    85         Node n2 = new Node();
     84        Node n1 = new Node(new LatLon(0, 0));
     85        Node n2 = new Node(new LatLon(0, 0));
    8686        Relation r1 = new Relation();
    8787        Relation r2 = new Relation();
Note: See TracChangeset for help on using the changeset viewer.