Changeset 2401 in josm for trunk/test/functional


Ignore:
Timestamp:
2009-11-07T17:10:51+01:00 (10 years ago)
Author:
jttt
Message:

Changes in selection handling:

  • selection is passed as PrimitiveId instead of OsmPrimitive
  • only primitives that exists in Dataset can be selected
  • selectionChanged event is fired only if selection was really changed
File:
1 edited

Legend:

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

    r2399 r2401  
    2828import org.openstreetmap.josm.data.osm.Node;
    2929import org.openstreetmap.josm.data.osm.OsmPrimitive;
    30 import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
    3130import org.openstreetmap.josm.data.osm.Relation;
    3231import org.openstreetmap.josm.data.osm.RelationMember;
     
    282281        assertEquals(10, out.getRelations().size());
    283282        for (Relation r1: out.getRelations()) {
    284             Relation r2 = (Relation)ds.getPrimitiveById(r1.getId(), OsmPrimitiveType.RELATION);
     283            Relation r2 = (Relation)ds.getPrimitiveById(r1);
    285284            assertNotNull(r2);
    286285            assertEquals(r2.getMembersCount(), r1.getMembersCount());
Note: See TracChangeset for help on using the changeset viewer.