Changeset 273 in josm for test


Ignore:
Timestamp:
2007-07-05T10:48:17+02:00 (14 years ago)
Author:
imi
Message:
  • fixed NPE when switching to way mapmode and emtpy data loaded
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/org/openstreetmap/josm/data/osm/DataSetTest.java

    r203 r273  
    7373                assertTrue(node3.selected);
    7474                assertFalse(node2.selected);
     75
     76                ds.setSelected();
     77                assertFalse(node3.selected || node2.selected);
     78               
     79                ds.setSelected(node1, way);
     80                assertTrue(node1.selected && way.selected);
     81                assertFalse(node3.selected);
     82               
     83                ds.setSelected((OsmPrimitive)null);
     84                assertFalse(node1.selected || node2.selected || node3.selected || way.selected);
    7585        }
    7686
Note: See TracChangeset for help on using the changeset viewer.