Changeset 290 in josm for test


Ignore:
Timestamp:
2007-07-18T23:12:56+02:00 (14 years ago)
Author:
imi
Message:
  • added support for multiple data layers
File:
1 edited

Legend:

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

    r273 r290  
    8787        public void testFireSelectionChanged() {
    8888                TestSelectionChangeListener l = new TestSelectionChangeListener();
    89                 ds.listeners.add(l);
     89                DataSet.listeners.add(l);
    9090                ds.setSelected(segment);
    9191                assertNotNull(l.called);
    9292                assertEquals(1, l.called.size());
    9393                assertSame(segment, l.called.iterator().next());
    94         }
    95 
    96         public void testAddAllSelectionListener() {
    97                 DataSet ds2 = new DataSet();
    98                 TestSelectionChangeListener l1 = new TestSelectionChangeListener();
    99                 TestSelectionChangeListener l2 = new TestSelectionChangeListener();
    100                 ds2.listeners.add(l1);
    101                 ds2.listeners.add(l2);
    102                 ds.listeners.addAll(ds2.listeners);
    103                 ds2.listeners.remove(l1);
    104                 ds.setSelected(node2);
    105                 assertNotNull(l1.called);
    106                 assertNotNull(l2.called);
     94                DataSet.listeners.remove(l);
    10795        }
    10896}
Note: See TracChangeset for help on using the changeset viewer.