Changeset 12764 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2017-09-06T23:48:04+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/ChangesetCacheTest.java
r12747 r12764 166 166 @Test 167 167 public void testFireingEventsUpdateChangeset() { 168 // Waiter listener to ensure the second listener does not receive the first event 169 TestListener waiter = new TestListener() { 170 @Override 171 void test() { 172 await(); 173 } 174 }; 175 cache.addChangesetCacheListener(waiter); 176 Changeset cs = new Changeset(1); 177 cache.update(cs); 178 waiter.test(); 179 cache.removeChangesetCacheListener(waiter); 180 168 181 TestListener listener = new TestListener() { 169 182 @Override … … 177 190 } 178 191 }; 179 Changeset cs = new Changeset(1);180 cache.update(cs);181 182 192 cache.addChangesetCacheListener(listener); 183 193 cache.update(cs);
Note:
See TracChangeset
for help on using the changeset viewer.