Changeset 285 in josm for test/unit/org/openstreetmap


Ignore:
Timestamp:
2007-07-11T21:41:12+02:00 (15 years ago)
Author:
imi
Message:
  • fixed test dependencies
  • added more functional tests
Location:
test/unit/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • test/unit/org/openstreetmap/josm/data/osm/visitor/MergeVisitorTest.java

    r242 r285  
    350350                assertEquals(23, ds.segments.iterator().next().id);
    351351        }
    352        
    353         public void testDoNotMergeEqualObjectsWithDifferentNonZeroId() throws Exception {
    354                 DataSet ds = new DataSet();
    355                 Segment s1 = createSegment(ds, false, false, 23);
    356                 Segment s2 = new Segment(s1);
    357                 s2.id = 42;
    358                 MergeVisitor v = new MergeVisitor(ds, null);
    359                 v.visit(s2);
    360                 assertEquals(2, ds.segments.size());
    361         }
    362352}
  • test/unit/org/openstreetmap/josm/testframework/MotherObject.java

    r271 r285  
    2323            super.setUp();
    2424            Main.proj = new Epsg4326();
     25            Main.ds = new DataSet();
    2526    }
    2627
Note: See TracChangeset for help on using the changeset viewer.